473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

XP visual style

http://msdn.microsoft.com/library/de...lStudioNET.asp
I've tried everything in the article
http://msdn.microsoft.com/library/de...lStudioNET.asp

with NO luck.

I've tried this on 2003 server and 2003 XP.

Also.
1) added Application.EnableVisualStyles(); before .run
2) private void RecursivelyFormatForWinXP(Control control)
3) if(Environment.OSVersion.Version.Major > 4
& Environment.OSVersion.Version.Minor > 0
& System.IO.File.Exists(Application.ExecutablePath + ".manifest"))

All seems to execute during debug, but NO visual changes.

One thing I noticed. When I open the .EXE file and add the manifest
resource, it does not stay added. Can't recompile while I have it opened in
VS, when I recompile, it is not there any more.

Any ideas?

Nov 16 '05 #1
3 1598
I re-checked the article and found a mistake in my execution. I added the
manifest resource to the wrong .EXE.

I did the import to the .OBJ\DEBUG .EXE and now it is permanent in the
compiled .EXE.

But, still NO XP style on any of my forms.

Once, again. Any ideas?
-----------------------------------------------------------------------------------------------
"Gary Miller" wrote:
http://msdn.microsoft.com/library/de...lStudioNET.asp
I've tried everything in the article
http://msdn.microsoft.com/library/de...lStudioNET.asp

with NO luck.

I've tried this on 2003 server and 2003 XP.

Also.
1) added Application.EnableVisualStyles(); before .run
2) private void RecursivelyFormatForWinXP(Control control)
3) if(Environment.OSVersion.Version.Major > 4
& Environment.OSVersion.Version.Minor > 0
& System.IO.File.Exists(Application.ExecutablePath + ".manifest"))

All seems to execute during debug, but NO visual changes.

One thing I noticed. When I open the .EXE file and add the manifest
resource, it does not stay added. Can't recompile while I have it opened in
VS, when I recompile, it is not there any more.

Any ideas?

Nov 16 '05 #2
Make sure the FlatStyle property of all controls you want to gain visual
styles is set to "System"...
As long as you do that, you just need to do
Application.EnableVisualStyles
Application.DoEvents

as the very first two lines of your application
And nothing more.
Don't know where you got
2) private void RecursivelyFormatForWinXP(Control control)
3) if(Environment.OSVersion.Version.Major > 4
& Environment.OSVersion.Version.Minor > 0
& System.IO.File.Exists(Application.ExecutablePath + ".manifest"))


from.
You shouldn't need it, neither should you need to modify the .EXE file
manually. Just have FlatStyle = System. It's not the default.

Nov 16 '05 #3
have you tried doing what I said?
"Gary Miller" <Ga********@discussions.microsoft.com> wrote in message
news:67**********************************@microsof t.com...
I re-checked the article and found a mistake in my execution. I added the
manifest resource to the wrong .EXE.

I did the import to the .OBJ\DEBUG .EXE and now it is permanent in the
compiled .EXE.

But, still NO XP style on any of my forms.

Once, again. Any ideas?
-----------------------------------------------------------------------------------------------
"Gary Miller" wrote:
http://msdn.microsoft.com/library/de...lStudioNET.asp
I've tried everything in the article
http://msdn.microsoft.com/library/de...lStudioNET.asp

with NO luck.

I've tried this on 2003 server and 2003 XP.

Also.
1) added Application.EnableVisualStyles(); before .run
2) private void RecursivelyFormatForWinXP(Control control)
3) if(Environment.OSVersion.Version.Major > 4
& Environment.OSVersion.Version.Minor > 0
& System.IO.File.Exists(Application.ExecutablePath + ".manifest"))

All seems to execute during debug, but NO visual changes.

One thing I noticed. When I open the .EXE file and add the manifest
resource, it does not stay added. Can't recompile while I have it opened
in
VS, when I recompile, it is not there any more.

Any ideas?

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joe Abou Jaoude | last post by:
I was asked to do the folowing visual effect, and I was wondering if someone knows how to. To view the visual effect , go to this link: http://v4.windowsupdate.microsoft.com/en/default.asp...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
2
by: Rob Meade | last post by:
Hi all, My apologies for this post being perhaps slightly off topic, at work I am only able to access MS newsgroups and I was under to find one perhaps more appropriate. My problem..... ...
3
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in...
10
by: Robert Jacobson | last post by:
Hi, I'm develing a COM add-in for Microsoft Word XP that displays a form. I'd like to have the form display using the Windows XP theme. However, neither using a manifest nor calling...
0
by: Tim Joyner | last post by:
I am using the EnableVisualStyle to apply visual style to my program. After using this command and starting my main form, the images that I have assigned to controls such as the toolbar and...
2
by: Tim Joyner | last post by:
I am using the EnableVisualStyle command to apply visual style to my program. After using this command and starting the main form, the images that I have assigned to controls such as the toolbar...
0
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the...
1
by: Bodyboarder20 | last post by:
Anybody know how to accomplish FrontPage or Visual Studio style tab controls? Thanks! (and yes, I have looked...)
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.