Removing items from the Solution Explorer in VBE 2005

G

Guest

Guyz,

I want to remove items from the Solution Explorer. The VBE 2005 help system
claims that to do this, you have to:-

1. Select the item you want to remove.

2. On the 'Edit' menu, choose 'Remove'.

The problem is that there is no 'Edit' menu in the Solution Explorer, and the
'Remove' option is not even listed in the 'Edit' menu in the VBE 2005 menu
system.

The only thing that is available is the 'Delete' option when I right-click
on the
item in Solution Explorer, but this permamently deletes the file from the
disk,
not from the solution, which is not what I want.

I have had to resort to creating a 'Backup' directory to store files I want to
remove from the Solution Explorer in case I want to reuse them later.

There must be a better way to remove items from the SE.

1. How do I remove items from the solution in the Solution Explorer?

2. Where do I find the 'Edit' menu? If it is missing, how do I add it
to
Solution Explorer?


SB
 
G

Guest

Rob,

Hello again! :) The problem is that there is no 'Exclude from project' menu
item when I right-click on the item in SE.

What I get is:-

Open Open With ...

followed by a separator bar, then:-

View Code

then another separator then:-

Cut Copy Delete Rename

then a third separator before we come to the last:-

Properties


SB
-----------------------------------------------------------------------------------------------
 
R

RobinS

How about under the Project option on the top menu
(File/Edit/View/Project/Build...). Does it have an "Exclude from Project"
option?

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
 
G

Guest

Rob,

This is what appears when I click on the 'Project' menu item:-

Add Windows Form ...
Add User Control ...
Add Module ...
Add Class ...
---------------------------
Add New Item ...
Add Existing Item ...
---------------------------
Show All Files
---------------------------
Add Reference ...
Add Web Reference ...
---------------------------
Project1 Properties ...


I have just thought up a different way.

1. Double-click on any item in the Solution Explorer, to bring up the code
window for that item.

2. Save the item with ' Save Form1.vb ' using the ' Save ... ' in the '
File ' menu.

3. Next, save a copy of the item, entitled ' Form1-2.vb ' with ' Save ...
As '.

4. When you have saved the copy, then right-click on that item and remove
it from
the project with ' Delete '.

5. That way, the copy gets deleted from the disk, but the original is still
present on
the disk.


SB
------------------------------------------------------------------------------------
 
R

RobinS

That's so weird. Maybe it's the difference between the Express version and
the Professional version. Glad you found a workaround.

Robin S.
------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top