Solved

Changing the desktop theme for an individual app

Posted on 2004-10-26
269 Views
Last Modified: 2010-04-24
Is there a way to change the desktop theme to windows classic from a web vb.net application?
Thanks.
0
Question by:dspace
    7 Comments
     
    LVL 8

    Expert Comment

    by:toddhd
    Can you explain what you are trying to do a little more?

    Usually, I see this question the other way around - as in, "How do I give my apps the XP theme look?"

    Typically, unless you design your app to look like XP (or choose a particlar borderstyle), your app and controls will take on the "System default" look.

    I'll tell you how to make your apps look like XP, and you can see if maybe these processes are in place - just remove them.

    One way to do it is to add a manifest file to your project. Rather than type it all here, I'll just point to a page showing it:
    http://visualbasic.about.com/library/weekly/aa070703a.htm

    The other way is to Add Application.EnableVisualStyles() to the application:
    http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=272284&Page=1#272284

    See if either of these are in place, maybe that's what's giving you the XP look.
    0
     
    LVL 8

    Expert Comment

    by:toddhd
    System.DateTime.Now.ToShortDateString
    0
     
    LVL 8

    Expert Comment

    by:toddhd
    Ooops, sorry about that - ignore the comment above - why the heck can't I delete a comment here???
    0
     

    Author Comment

    by:dspace
    My problem is that I designed my web page on an xp machine that was in windows classic mode and everything looks great.  I have found that if someone browses to that page on a machine running xp theme, all of the input  fields now have borders and the text size has changed.

    I was hoping that i could programatically change some object windows.theme = "classic"  (something like that) so that everyone would have the same look.
    0
     
    LVL 8

    Accepted Solution

    by:
    Sorry, I misread your question - I missed that it was a web app, not a Windows App.

    Not 100% on this, but I noticed that IE6 displayed things differently than IE5 did. That's just the way MS designed it. I'm not sure if there is a simple "display it like IE5" switch anywhere, but I don't think there is. What you would need to do is code your own CSS to make things look the way you want them too. You should already be aware that different browsers are going to interpret your pages differently even with the CSS spelled out.

    I'll keep looking to see if there a simple way to do handle this...
    0
     
    LVL 8

    Expert Comment

    by:toddhd
    Hard to say exactly what looks different without seeing it, but I'm assuming it might be related to this problem:
    http://htmlfixit.com/tutes/tutorial_Internet_Explorer_Broken_Box_Model_Hack_and_Other_Alternatives.php
    0
     

    Author Comment

    by:dspace
    Thanks for all your help.  It doesn't appear to be a browser issue since I am using the same browser (IE6 same version) on both PCs.  The only difference is that one PC is themed windows classic and the "bad" PC is themed windows xp.

    For now I'll just move on to other issues and re-visit this later.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: From Zero to Hero with Nodejs & MongoDB

    Interested in Node.js, but don't know where to start or how to learn it properly? Confused about how the MEAN stack pieces of MongoDB, Expressjs, Angularjs, and Nodejs fit together? Or how it's even possible to run JavaScript outside of the browser?

    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    This video Micro Tutorial is the first in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles al…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

    856 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now