C# the look and feel of the GUI I made changes between work and home?

Posted on 2007-08-03
Last Modified: 2012-06-27
C# GUI question.

OK, so I created a small GUI app at work using VS C# 2005 and it looked very drab and grey but it worked. I brought it home by zipping the \projects\this project folder and placed in my \projects\ folder at home (C# 2005 express). Well I opened it and beyond some click-thru messages it opened. I built and ran it and LOW AND BEHOLD it was not a drab grey GUI app but a rounded light blue master piece! Why I do not know? I haven't changed anything here but I want to change the look and feel of this to the one at work? Where or how can I do this? Does it feed off some Windows setting?

Thanks in advance, Karl66
Question by:Karl66
    LVL 33

    Expert Comment

    Are you referring to the window title bar?
    At work, you could have set Windows to run "Adjust for best performance" mode. This could explain the difference in layout.

    Control Panel -> System
    Click Advanced tab
    Under Performance, click Settings button
    Under Visual Effects page tab, play around with "Adjust for best performance" and "Adjust for best appearance".


    Author Comment

    Thnak you I will check that on Monday
    LVL 1

    Accepted Solution

    When you develop an application in .net (Or most other languages) the forms you design will follow the system theme unless you specify a third party component to skin the application (Or do so yourself).  

    To Adjust Themes -

    XP  Under Display properties (In Control Panel or right click on desktop)  its a tab labeled as Appearance

    Vista  Control Panel  Personalization - Theme

    Author Comment

    Haze -

    Are you saying it will stay the same if I send it to someone else as a distribution or will it go changing like a chamelion on different systems?

    LVL 1

    Expert Comment

    If you go to any kind of color configuration (Form.ForeColor for example) you will notice 3 tabs (System, Web, Custom).  By default, your color is set under "System", this means that all colors will be pulled from whatever the current System colors are set on.

    If you would like to keep the same look and feel on every system, you should look into Skins (I would post some links, but there are many Skinning components with dozens of themes that come with them)

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    The viewer will learn how to implement Singleton Design Pattern in Java.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    733 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

    21 Experts available now in Live!

    Get 1:1 Help Now