Home All Groups Group Topic Archive Search About

Adding images to image folder in vb.net

Author
24 Feb 2006 3:04 PM
reidarT
I have oppened a solution in Vb.net with an image folder.
When I have opened vb.net and then adds an image to the image folder,
it is not updated. I have to strt vb.net all over. Am I missing something?
reidarT

Author
24 Feb 2006 5:49 PM
Cerebrus
Hi ReidarT,

If I understand you correctly, you want to refresh the Solution
Explorer within Visual Studio .NET to reflect changes that you made
with Windows Explorer. (Added or removed files)

Well, firstly, the Solution Explorer is just that ; It shows all the
items that are relevant to your solution or Project. It is by design
not intended to refresh whenever you make changes to any folders or
files.

Remember, files must be "Added" to your solution for them to be
reflected in the Solution Explorer.

There are 2 ways to address your problem :

1. Add files only through the Solution Explorer itself... by right
clicking and selecting the "Add existing Item" option. This will then
add the file/folder to the Project. If you want to add a file to a
folder already present in Solution Explorer, Right click on the Folder
and then choose the same option.

2. At the top of the Solution Explorer, you will see a button called
"Show all Files". When this is clicked, it will show all files (Hidden
and otherwise) that are present in your Project Folder. Now when you
expand the TreeNode of your Image Folder, you should see the image file
that you just created using Windows Explorer. Right click on this file,
and choose "Include in Project".

Hope this information helps,

Regards,

Cerebrus.