Application.EnableVisualStyles() And Image on the button

S

Sylvain Barde

When I use Application.EnableVisualStyles()

Public Sub New()

MyBase.New()

Application.EnableVisualStyles()

Application.DoEvents()

InitializeComponent()

End Sub

And I set the Flatstyle property of a button to System, and I set the Image
property of the button, I can't see the image on the button.

What can I do to see the image ?
 
H

Herfried K. Wagner [MVP]

Sylvain Barde said:
When I use Application.EnableVisualStyles()

Public Sub New()

MyBase.New()

Application.EnableVisualStyles()

Application.DoEvents()

InitializeComponent()

End Sub

And I set the Flatstyle property of a button to System, and I set the
Image
property of the button, I can't see the image on the button.

That's a limitation of the 'System' style, regardless of visual styles
turned on or off.

Windows XP themed buttons don't show an Image.
<URL:http://dotnetrix.co.uk/buttons.html>
 

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