[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

XP Color Scheme

Posted on 2009-04-20
2
Medium Priority
?
497 Views
Last Modified: 2013-11-27
Can I change Windows XP (SP2) Style and color scheme at time of VB.Net code execution and restore as it was originally before the execution after the execution completed? I am working on VB.Net 2008 Express Edition
0
Comment
Question by:Amitava_Mukherjee
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 1500 total points
ID: 24191501
Are you sure that you want to do this ? If you changed my system color theme I would uninstall your application immediately and be quite angry with you.

What if the user is using the classic theme because they don't like the XP visual styles? What if the user has poor vision and needs the high contrast theme? What if the user is using Windows Vista and doesn't have the Silver theme? In the end, to make your application run without crashing you'll have to give up in many cases anyway.

If you don't want your colors to change when the system colors are different, set the colors to what you want them to be.

Some coding examples:
Detecting XP Themes
http://www.codeproject.com/KB/cs/xptheme.aspx

XP theme application- Make a different style!
http://www.codeproject.com/KB/miscctrl/XP_theme.aspx

Enabling XP Themes in your .NET Applications
http://ryanfarley.com/blog/archive/2004/05/05/599.aspx

Visual Basic .NET Code Sample: XP Theme Support
http://www.microsoft.com/downloads/details.aspx?FamilyID=0E18F38F-BAD3-4B37-A99D-BE48F6FB3913&displaylang=en
0
 

Author Closing Comment

by:Amitava_Mukherjee
ID: 31572592
Yes, you are right. probably I am thinking in the wrong way. Thankx for your comments and solutions.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question