Remove Button Image, Reset to None

dclus

Member
Joined
Jan 14, 2007
Messages
13
Programming Experience
5-10
Hi All,
I have created an image object and set the image property for a button to display that image at runtime. Now I may need to remove that image from the button but can't for the life of me figure it out... here is code;

Dim xImage As Object = Image.FromFile("C:\Program Files\Injection Rotation\x.bmp")

btn1.Image = xImage


How can I remove the image from the button?
Also, I wish there were a better way to handle the image. Static images I place in the resource bucket which get compiled into the executable, but an image instantiated at runtime it seems like I have to load the image file from an external source as shown above.

Any help will be much appreciated, have a great day!
Thank you
 
set Image property value to Nothing
 
Thanks

I was trying to write a routine for tracking plastic injection molds, everything was going good until I ran into this, new it had to be something simple, cool beans! That was quick, thank you JohnH
 
Back
Top