BUTTON - VISUAL STYLE HOW ?

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

i saw some .net demo, there is a property for the button or check box called
"visualstyle" (something like that)
In my.net 2000 , there is not such property. Does it belongs to 2005 ??

thanks
 
Hallo Agnes,
i saw some .net demo, there is a property for the button or check box called
"visualstyle" (something like that)
In my.net 2000 , there is not such property. Does it belongs to 2005 ??

I don't know what .net 2000 is, but when developing with Microsoft Visual Studio
2002 IDE there is no property "visual style". You must have a manifest file in
the "*.exe" folder and a property "FlatStyle" set to "System".

some information about visual styles from the source (Microsoft):
http://tinyurl.com/36so6
more simply described
http://tinyurl.com/2k5bu

Best regards
Ulrich Kulle
***************************************
http://www.help-info.de
***************************************
 
Hi Agnes,

Also only copied from someone else
In Framework 1.1 you can call
System.Windows.Forms.Application.EnableVisualStyles.

(Framework 1.1 is visual.studio 2003)

I hope this helps?

Cor
 
* "Agnes said:
i saw some .net demo, there is a property for the button or check box called
"visualstyle" (something like that)
In my.net 2000 , there is not such property. Does it belongs to 2005 ??

I don't think there will be such a property because buttons with
standard style are drawn with visual styles in .NET 2.0.

In .NET 2003, you will have to set the control's 'FlatStyle' property to
'System' and pace these two calls before instantiating and showing the
forms (for example, in 'Sub Main'):

\\\
Application.EnableVisualStyles()
Application.DoEvents() ' Bug fix.
///
 
Back
Top