Image on Button

  • Thread starter Thread starter Jeffrey Saunders
  • Start date Start date
J

Jeffrey Saunders

How do I change the from text on a button to an image? I know in VB6, you
can go to the Styles option of the button and just change it graphical. How
do you do this in VB.NET?
 
* "Jeffrey Saunders said:
How do I change the from text on a button to an image? I know in VB6, you
can go to the Styles option of the button and just change it graphical. How
do you do this in VB.NET?

Set the button's 'Image' property and set 'Text' to "".
 
Hi Jeffrey,

There are two methodes
- using the imagelist
- using the button.image - btn.image= image.fromfile("path")
But nicer is to do it in the designer because then the image becomes a part
of the program

I hope this helps,

Cor
 
Is your buttons FlatStyle property set to System?
Change it to any of the other three options (the default being Standard).

Jeffrey Saunders said:
I did that and the button is blank now

--
Jeffrey Saunders
"Newbie Programmer"
OH, NO! Software

graphical.
 
I use the Standard Flatsytle... i will try changeing it to system
sytle...

Jeffrey Saunders
 
Back
Top