By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,317 Members | 1,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,317 IT Pros & Developers. It's quick & easy.

BUTTON - VISUAL STYLE HOW ?

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi Agnes,

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

(Framework 1.1 is visual.studio 2003)

I hope this helps?

Cor
Nov 20 '05 #2

P: n/a
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
***************************************


Nov 20 '05 #3

P: n/a
I am using Framework 1.0 , so I can't use it ?
How can I upgrade it ?

Thanks
"Cor Ligthert" <no**********@planet.nl> 在郵件
news:eQ**************@TK2MSFTNGP11.phx.gbl 中撰寫...
Hi Agnes,

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

(Framework 1.1 is visual.studio 2003)

I hope this helps?

Cor

Nov 20 '05 #4

P: n/a
Hi,

http://support.microsoft.com/default...b;en-us;303636

Ken
----------------
"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:e9**************@tk2msftngp13.phx.gbl...
I am using Framework 1.0 , so I can't use it ?
How can I upgrade it ?

Thanks
"Cor Ligthert" <no**********@planet.nl> 在郵件
news:eQ**************@TK2MSFTNGP11.phx.gbl 中撰寫...
Hi Agnes,

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

(Framework 1.1 is visual.studio 2003)

I hope this helps?

Cor


Nov 20 '05 #5

P: n/a
* "Agnes" <ag***@dynamictech.com.hk> scripsit:
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.
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.