XP style controls
-
Can anyone tell me how i get the controls on my C# form to display in an XP style, when the form is running on XP? Any ideas welcome! kenbloke
-
When you run your application on XP it display in XP style,even it is C#,VC or VB programs.Maybe you change your Appearence to classic style in control panel Mazy You can find a solution (even a foolish one) for all problems (even big ones)
To clarify. XP style in terms of displaying the controls in the updated XP style as defined by XP's Common Control library and XP's current theme setting. I'm new to C# and does not appear to be obvious how to achieve this. Or have i missed something? Kenbloke
-
To clarify. XP style in terms of displaying the controls in the updated XP style as defined by XP's Common Control library and XP's current theme setting. I'm new to C# and does not appear to be obvious how to achieve this. Or have i missed something? Kenbloke
-
Can anyone tell me how i get the controls on my C# form to display in an XP style, when the form is running on XP? Any ideas welcome! kenbloke
In order to enable the XP Style controls you need to include a manifest either as a resource or as a separate file. The manifest is nothing more than an xml document :) your application description (manifest taken from Colin's VMTU since I can't find mine here) If the manifest is included as a separate file (the easiest way to do it), it should be named myapp.exe.manifest I can't remember the steps off hand for putting the manifest in the resource, i think resgenx was the command that was used to generate the resource, then you include the resource with the compiler. HTH, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002
-
In order to enable the XP Style controls you need to include a manifest either as a resource or as a separate file. The manifest is nothing more than an xml document :) your application description (manifest taken from Colin's VMTU since I can't find mine here) If the manifest is included as a separate file (the easiest way to do it), it should be named myapp.exe.manifest I can't remember the steps off hand for putting the manifest in the resource, i think resgenx was the command that was used to generate the resource, then you include the resource with the compiler. HTH, James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002
And as Mazdak said, set the Appearance property to standard :) James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002
-
And as Mazdak said, set the Appearance property to standard :) James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002
Thanks for that info James and Mazdak!!! :-D pointed me in the right direction. Anyway for anyone who is still having problems displaying XP style controls. i found the following site on msdn useful. http://msdn.microsoft.com/library/?url=/library/en-us/dv\_vbvcstechart/html/vbtchUsingWindowsXPVisualStylesWithControlsOnWindowsForms.asp?frame=true Kenbloke