Images on XP style command buttons

G

Guest

I.m developing applications using VB.NET and have a number of command buttons that have images on them. When The application is run with the classic windows style look the images appear just fine but when I switch the application to the Windows XP look the images dissappear from the buttons and all I have is an XP style button with text on it. Is there a way to use XP style buttons and still have images displayed on them?
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?TWFydGluIEtlZXRvbg==?= said:
I.m developing applications using VB.NET and have a number of command
buttons that have images on them. When The application is run with the
classic windows style look the images appear just fine but when I switch
the application to the Windows XP look the images dissappear from the
buttons and all I have is an XP style button with text on it. Is there a
way to use XP style buttons and still have images displayed on them?

That's not supported directly by the .NET button control. Nevertheless,
somebody implemented a button which shows in XP style and can display an
image:

<http://www.codeproject.com/cs/miscctrl/xp-style_button.asp>
 

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