Results 1 to 4 of 4

Thread: [2.0] Controls GUI

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    Cairo, Egypt
    Posts
    126

    Cool [2.0] Controls GUI

    In VS 2003 most controls have the property FlatStyle which contain the values (Standard, System, etc.). The Standard value means to keep the standard GUI of the control as the VS draw it whatever the Windows running is and it is the standard of the GUI of Windows versions before XP, and the system value take the system GUI and draw the control like buttons as the Windows draws it if it is XP. In VS 2005 it becomes opposite and the standard value draws it as the VS standard GUI under Windows XP which I use and take the system GUI in running and the system value make it one GUI in running which is the old GUI. I want to ask if I can make the controls appear with one GUI like the XP or any whatever the Windows is XP or previous (I mean buttons most) or this is need a third party control or I must draw it by coding?

  2. #2
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: [2.0] Controls GUI

    There is still the way of using a manifest file in C# like there was in VB6, but setting the FlatStyle property to System should do the job. Here is a link to MSDN discussing this topic...

    Using Windows XP Visual Styles With control on Windows Forms

    The manifest file option is also documented in there with everything you will need

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] Controls GUI

    By default, applications built with VS 2005 will render controls in accordance with the current Windows theme. From your post I think that that is what you want, but I'm not 100% sure.

    Maybe you're saying that you want to render your controls in a specific way regardless of the current Windows theme. Is that it?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    Cairo, Egypt
    Posts
    126

    Re: [2.0] Controls GUI

    To jmcilhinney
    Yes I want to render my controls in a specific way or the application use the shape of XP in buttons regardless the windows verrsion or theme.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width