Toolbar button images

D

dragonslayer008

I added a button to my tool bar. I noticed the "Image" property.
When I click that it brings me to an open file dialog to choose the
image file. My question is, is the chosen image file loaded as a
resource embedded in the EXE or does it just reference the file?

If it is not loaded as a resource, how can I assign a bitmap resource
as the image of a toolbar button?
 
K

Kevin Spencer

In Visual Studio, add a bitmap to your project. Then go to the Project
Properties page (right-click the project in Solution Explorer and select
"Properties"). Go to the Resources tab, and select "Add Existing File..."
from the "Add Resource" tool. Browse to the file and add the resource. Then
you can select the resource when you go to select the image for your button.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 

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