CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2001
    Location
    Switzerland
    Posts
    114

    How to use Windows XP Style Controls in CSharp?

    I'm using Windows XP and .NET. I'm wondering why I can't get my controls in Forms look like the Controls in Windows XP - I mean for example the buttons which enlight when hovering and so on.
    May it have to do something with my Windows XP Configuration?

    Thanks for answers

    Stefan
    Read Ouspensky 's "Tertium Organum"!

  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265

  3. #3
    Join Date
    Aug 2001
    Location
    Switzerland
    Posts
    114
    Sorry, I couldn't find any infos about my problem under the url you gave me. Another idea how to use XP Style Controls with C#?
    Read Ouspensky 's "Tertium Organum"!

  4. #4
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890

    Thumbs up

    hi st,

    In order to use XP style controls you need to import/set reffernce
    with

    ComCtl32.dll Version 6

    It is located in windows xp system dir. or when you add reference then it should add it.

    for further information plz read
    1) http://msdn.microsoft.com/library/de...x/cookbook.asp

    for MSDN. they have given the app. stuffs. now for all platforms you need to check the version of comctl32.dll and then dynamically you need to grab that controls. you need to make a namespace which does that. and wrap it around comctl32.dll of all versions. so that you just use that namespace and that's all about it. so if it detects XP then that style will be usefull.


    hope it helps
    Paresh

  5. #5
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265
    Originally posted by wotan
    Sorry, I couldn't find any infos about my problem under the url you gave me. Another idea how to use XP Style Controls with C#?
    The forum software messes up the URL. Copy and paste it manually, and make sure to get rid of any embedded spaces: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchUsingWindowsXPVisualStylesWithControlsOnWindowsForms.asp
    Last edited by Arild Fines; December 20th, 2002 at 11:41 AM.

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

Featured