Groups | Blog | Home
all groups > dotnet distributed apps > september 2006 >

dotnet distributed apps : Deploying windows app with XP theme


ash
9/29/2006 2:06:02 AM
Hi,

I haven't posted a question before so I hope that this is the right forum.

I am developing a windows app in vb.net (2002) that I want to have an xp
theme. I have read quite a few web articles describing the process for
incorporating this and have indeed been successful at getting my .exe file to
run with an xp theme. However, I have not been able to deploy the
application with an xp theme.

My progress so far: I built the assembly manifest, given it the right name,
called it “RT_MANIFEST” and an ID of 1. I then added it into the .exe file
located in my ‘release’ folder manually, and when I then execute the .exe it
works fine. I know that I have to manually add the manifest every time I
build the project.

When I then come to deploy the app it does not keep the xp theme, even when
I test run it on an xp PC set up to run xp style. I am not rebuilding the
app project, just the deployment project so I don’t think a rebuild is the
reason.

I have tried embedding the manifest into the .exe located in the ‘bin’
directory, but when I try to run this .exe I get an error message saying that
the assembly is incorrect.

Any help would be really appreciated as I am completely stumped.

Thanks,

Ash
Ehsan
10/6/2006 9:20:02 AM
Have you tried Application.EnableVisualStyles method?
It is an easier way of 'themeing' your interface.

You have to set the 'FlatStyle' property of all individual buttons,
checkboxes, etc. to 'System', and call the Application.EnableVisualStyles
ash
10/6/2006 10:56:01 AM
Hi, I am using VB 2002 so this option is not available. The approach I have
to use is to attach a manifest, it all works fine in that I get the correct
theme when I run on my development PC, I just can't create a distribution
project that installs the app with the theme.

Ash

[quoted text, click to view]
AddThis Social Bookmark Button