Click to See Complete Forum and Search --> : How to use Windows XP Style Controls in CSharp?
wotan
December 16th, 2002, 02:52 PM
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
Arild Fines
December 17th, 2002, 11:47 AM
Read this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchUsingWindowsXPVisualStylesWithControlsOnWindowsForms.asp
wotan
December 19th, 2002, 11:46 AM
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#?
pareshgh
December 19th, 2002, 05:25 PM
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/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/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
Arild Fines
December 20th, 2002, 10:38 AM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.