Toolbar button images

  • Thread starter Thread starter dragonslayer008
  • Start date Start date
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?
 
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
 
Back
Top