Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

theme and scheme

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 23 Sep 2004 14:45 GMT
My XP desktop theme is set to "Windows XP (Modified)" and the "Appearance" is
set as:
  Windows and buttons: Windows XP style
  Color scheme: Silver

This shows correctly in my .Net 2005 Beta 1 IDE but when I run the
application it seems to revert back to a 'classic' style.

Any ideas how to set the running app to display as it does in the IDE?

Paul
Mick Doherty - 23 Sep 2004 17:56 GMT
Add  Application.EnableVisualStyles()  to your sub main(). Not sure if the
toolbar, TabControl etc... bugs have been fixed so you may also need to add
Application.DoEvents()

Signature

Mick Doherty
http://dotnetrix.co.uk/nothing.html

> My XP desktop theme is set to "Windows XP (Modified)" and the "Appearance"
> is
[quoted text clipped - 8 lines]
>
> Paul
Paul - 23 Sep 2004 22:45 GMT
I tried your suggestion but the running application still does not display
like it does in the ide.

> Add  Application.EnableVisualStyles()  to your sub main(). Not sure if the
> toolbar, TabControl etc... bugs have been fixed so you may also need to add
[quoted text clipped - 17 lines]
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
Peter Wilson - 24 Sep 2004 04:42 GMT
> My XP desktop theme is set to "Windows XP (Modified)" and the "Appearance" is
> set as:
[quoted text clipped - 8 lines]
> Paul
>  
Beware EnableVisualStyles()! I've just spent two days tracking down a
nasty Interop.SEHException bug raised after closing a modal dialog.
Removing the call to EnableVisualStyles() cured the bug.
.Net 1.1 SP 1 Win2003 Server.

YMMD.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.