473,322 Members | 1,734 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,322 software developers and data experts.

EnableVisualStyles - Release

Hi!

I usually enable visual styles in my apps. I do it in Main before I
start my app with Application.Run.
Today when I changed from debug to release mode in Visual Studio .NET
2003, the XP-style disappeared when I ran the app.
I changed back to debug mode but I couldn't get the more appealing
XP-style back.

I even created a new solution and projects and manually copied my files
to the new location but it wouldn't change back.

Has anyone run into this problem before??

/Christian
Nov 16 '05 #1
4 1859
Christian,
Did you call Application.DoEvents also?

Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(...);

Are you certain you did not delete the EnableVisualStyles line?

Hope this helps
Jay

"Christian Westerlund" <ch******************@comhem.se> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi!

I usually enable visual styles in my apps. I do it in Main before I
start my app with Application.Run.
Today when I changed from debug to release mode in Visual Studio .NET
2003, the XP-style disappeared when I ran the app.
I changed back to debug mode but I couldn't get the more appealing
XP-style back.

I even created a new solution and projects and manually copied my files
to the new location but it wouldn't change back.

Has anyone run into this problem before??

/Christian

Nov 16 '05 #2
Hi Jay!

Thanks for the help, I didn't do DoEvents().
Wy must i have that line there for it to work when it worked fine earlier?

Thanks again!

/Christian

Jay B. Harlow [MVP - Outlook] wrote:
Christian,
Did you call Application.DoEvents also?

Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(...);

Are you certain you did not delete the EnableVisualStyles line?

Hope this helps
Jay

"Christian Westerlund" <ch******************@comhem.se> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi!

I usually enable visual styles in my apps. I do it in Main before I
start my app with Application.Run.
Today when I changed from debug to release mode in Visual Studio .NET
2003, the XP-style disappeared when I ran the app.
I changed back to debug mode but I couldn't get the more appealing
XP-style back.

I even created a new solution and projects and manually copied my files
to the new location but it wouldn't change back.

Has anyone run into this problem before??

/Christian


Nov 16 '05 #3
Christian,
There are a handful of "bugs" in EnableVisualStyles, that calling DoEvents
seems to fix.

The biggest "bug" I know of is that tool bar button images do not (may not)
display. I understand there are a couple of other minor issues with it... I
use DoEvents, currently I have not seen any of the issues...

Hope this helps
Jay
"Christian Westerlund" <ch******************@comhem.se> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Jay!

Thanks for the help, I didn't do DoEvents().
Wy must i have that line there for it to work when it worked fine earlier?

Thanks again!

/Christian

Jay B. Harlow [MVP - Outlook] wrote:
Christian,
Did you call Application.DoEvents also?

Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(...);

Are you certain you did not delete the EnableVisualStyles line?

Hope this helps
Jay

"Christian Westerlund" <ch******************@comhem.se> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Hi!

I usually enable visual styles in my apps. I do it in Main before I
start my app with Application.Run.
Today when I changed from debug to release mode in Visual Studio .NET
2003, the XP-style disappeared when I ran the app.
I changed back to debug mode but I couldn't get the more appealing
XP-style back.

I even created a new solution and projects and manually copied my files
to the new location but it wouldn't change back.

Has anyone run into this problem before??

/Christian


Nov 16 '05 #4

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:ej*************@TK2MSFTNGP10.phx.gbl...
Christian,
There are a handful of "bugs" in EnableVisualStyles, that calling DoEvents
seems to fix.
How that function ever made it past testing and into the real world is a
mystery. DoEvents will fix the obvious bugs and leave you with just the
painful non-obvious ones. I'd use a manifest instead, and avoid trouble in
the future.

The biggest "bug" I know of is that tool bar button images do not (may not) display. I understand there are a couple of other minor issues with it... I use DoEvents, currently I have not seen any of the issues...

Hope this helps
Jay
"Christian Westerlund" <ch******************@comhem.se> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Jay!

Thanks for the help, I didn't do DoEvents().
Wy must i have that line there for it to work when it worked fine earlier?
Thanks again!

/Christian

Jay B. Harlow [MVP - Outlook] wrote:
Christian,
Did you call Application.DoEvents also?

Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(...);

Are you certain you did not delete the EnableVisualStyles line?

Hope this helps
Jay

"Christian Westerlund" <ch******************@comhem.se> wrote in message news:%2******************@TK2MSFTNGP10.phx.gbl...

>Hi!
>
>I usually enable visual styles in my apps. I do it in Main before I
>start my app with Application.Run.
>Today when I changed from debug to release mode in Visual Studio .NET
>2003, the XP-style disappeared when I ran the app.
>I changed back to debug mode but I couldn't get the more appealing
>XP-style back.
>
>I even created a new solution and projects and manually copied my files>to the new location but it wouldn't change back.
>
>Has anyone run into this problem before??
>
>/Christian


Nov 16 '05 #5

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

Similar topics

4
by: Dave | last post by:
Seems to be a bug when a GroupBox contains another GroupBox. The caption of the child seems to get truncated/bloated when the application is run with Application.EnableVisualStyles() and the...
1
by: Sylvain Barde | last post by:
When I use Application.EnableVisualStyles() Public Sub New() MyBase.New() Application.EnableVisualStyles() Application.DoEvents()
4
by: #ROBERT | last post by:
(VS 2003 + .NET Framework 1.1 + WinXP Pro SP2) Calling Application.EnableVisualStyles() after the initialization() removes all images in the tab control (in the tab headers I mean). Without...
9
by: Guy | last post by:
I have extended the datetimepicker control to incorporate a ReadOnly property. I have used the new keyword to implement my own version of the value property, so that if readonly == true then it...
1
by: desa | last post by:
If I call EnableVisualStyles none the images in my ImageLists show up in my controls anymore. Is this a known issue? How do I fix this? I'm using VS.NET 2003.
8
by: perspolis | last post by:
hi all I can't use the Application.enableVisualStyle method. it gives me an error that it can't find a match for it. I installed dotnet version 1.1..but it still dosen't work..????
17
by: Lance | last post by:
I've noticed that calling DoEvents is much slower in an application that has called Application.EnableVisualStyles in Sub Main. Furthermore, the performance seems to worsen each time that DoEvents...
2
by: Juan Pedro Gonzalez | last post by:
I am a bit unsure about this "Effect"... My code: Public Sub Main() Application.EnableVisualStyles() Application.DoEvents() Dim myMainForm As New FormularioPrincipal Dim mySplash As New...
7
by: Peter | last post by:
Hello, I'm using Visual Studio 2003 and it would be nice if my buttons and other controls could look like Windows XP buttons rather than the flat square kind. I looked on the web and found some...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.