image button vb.net 2003

  • Thread starter andy.vandierendonck
  • Start date
A

andy.vandierendonck

Hello,

I have a question about the command button in vb.net 2003.

I was wondering if there's really no possible way to draw an image
(icon) on
a system command button. I know it's very easy if you use a standard
flatstyle button but the problem is that it doesn't support the
windows xp
visual style.

After many searching on the net I wasn't be able to find the answer I
was
looking for ...
I found many solutions from people who made they're own button control
but
when the windows theme is set to the windows classic style it still
show's
an xp style button.

I've tried to draw a picturebox above the command button but it's
backcolor
can't be set to transparent and the main issue is that you can click
on the
picture box.


Any help would be very appreciated ...

Many thanks in advance
Andy
 
H

Herfried K. Wagner [MVP]

I have a question about the command button in vb.net 2003.

I was wondering if there's really no possible way to draw an image
(icon) on
a system command button. I know it's very easy if you use a standard
flatstyle button but the problem is that it doesn't support the
windows xp
visual style.

P/invoke, search the Platform SDK documentation for 'BUTTON_IMAGELIST'.
 

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