Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buttons with background image changing...

Status
Not open for further replies.

TeSSeO

Programmer
Feb 18, 2002
14
0
0
ES
Hi there,

Im using images (jpg files), as background images of my buttons. I change the image of the button on mouse over event. Right now Im doing it like this:

mybutton.BackgroundImage = System.Drawing.Image.FromFile("\\images\\admin1.jpg");

But Id like to do it getting the image from the resource file. I think there is a way of incluiding the images into the resource file and getting them from there, but Ive got no idea of doing it.

Anyone can help?

Thanks a lot in advance,
TssO.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top