I have an application that has bitmap images on the
button. The applicaton was displaying them fine until I
added a manifest to the application to display them as XP
style buttons. I used the example manifest in the VS
2003 documentation in C#.

I have spent a couple hours scanning the web looking for
the answer to this..

What do I have to do differently to the image on a button
when it is displayed using an XP them.?

Anyone able to nudge me towards a solution?

Thanks...

Re: Images on button with XP-Theme by Herfried

Herfried
Sun Sep 07 15:54:38 CDT 2003

Hello,

"Mike in Paradise NL" <kanuk_eh.nospam@hotmail.com> schrieb:
> I have an application that has bitmap images on the
> button. The applicaton was displaying them fine until I
> added a manifest to the application to display them as XP
> style buttons. I used the example manifest in the VS
> 2003 documentation in C#.
>
> I have spent a couple hours scanning the web looking for
> the answer to this..
>
> What do I have to do differently to the image on a button
> when it is displayed using an XP them.?
>
> Anyone able to nudge me towards a solution?

There is no easy way because Windows doesn't support themed buttons with
images. You must draw the button yourself by using uxtheme-API.

--
Herfried K. Wagner
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet



Re: Images on button with XP-Theme by Mike

Mike
Sun Sep 07 18:05:58 CDT 2003

Thanks for the info and saving me from figuring that this=20
must be easy and I am just missing something...Now I have=20
to decide if it is worth the effort...This now gets stuck=20
on the end of the project priorities..
>-----Original Message-----
>Hello,
>
>"Mike in Paradise NL" <kanuk_eh.nospam@hotmail.com>=20
schrieb:
>> I have an application that has bitmap images on the
>> button. The applicaton was displaying them fine until=20
I
>> added a manifest to the application to display them as=20
XP
>> style buttons. I used the example manifest in the VS
>> 2003 documentation in C#.
>>
>> I have spent a couple hours scanning the web looking=20
for
>> the answer to this..
>>
>> What do I have to do differently to the image on a=20
button
>> when it is displayed using an XP them.?
>>
>> Anyone able to nudge me towards a solution?
>
>There is no easy way because Windows doesn't support=20
themed buttons with
>images. You must draw the button yourself by using=20
uxtheme-API.
>
>--=20
>Herfried K. Wagner
>MVP =B7 VB Classic, VB .NET
>http://www.mvps.org/dotnet
>
>
>.
>

Re: Images on button with XP-Theme by Kevin

Kevin
Sun Sep 07 20:29:26 CDT 2003

"Mike in Paradise NL" <kanuk_eh.nospam4me@hotmail.com> wrote in message
news:34eb01c37594$99851070$a101280a@phx.gbl...
> Thanks for the info and saving me from figuring that this
> must be easy and I am just missing something...Now I have
> to decide if it is worth the effort...This now gets stuck
> on the end of the project priorities.

There is an example on The Code Project[1] that might help you.

[1] http://www.codeproject.com/cs/miscctrl/xp-style_button.asp

--
Kevin Westhead



Re: Images on button with XP-Theme by Mike

Mike
Mon Sep 08 08:11:18 CDT 2003

Thanks, I have that bookmarked..
>-----Original Message-----
>"Mike in Paradise NL" <kanuk_eh.nospam4me@hotmail.com>
wrote in message
>news:34eb01c37594$99851070$a101280a@phx.gbl...
>> Thanks for the info and saving me from figuring that
this
>> must be easy and I am just missing something...Now I
have
>> to decide if it is worth the effort...This now gets
stuck
>> on the end of the project priorities.
>
>There is an example on The Code Project[1] that might
help you.
>
>[1] http://www.codeproject.com/cs/miscctrl/xp-
style_button.asp
>
>--
>Kevin Westhead
>
>
>.
>