Control Style XP

  • Thread starter Thread starter facicad
  • Start date Start date
F

facicad

Can I use same control as Windows XP style in my app. Ex.: Button as flat
and round coner, groupbox as round coner, all scrollbar and drop down is
blue etc. ... I use VB.NET 2003 on Windows XP Pro sp1 and my control is old
design
 
Hi, when your application starts (e.g. in the Sub Main or your form's 'New'
method), put the following lines:

Application.EnableVisualStyles()
Application.DoEvents()

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"


: Can I use same control as Windows XP style in my app. Ex.: Button as flat
: and round coner, groupbox as round coner, all scrollbar and drop down is
: blue etc. ... I use VB.NET 2003 on Windows XP Pro sp1 and my control is
old
: design
:
:
 
I've forgotten to mention that controls that support the FlatStyle property
must have their FlatStyle set to system, for the visual styles to appear.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"


: Hi, when your application starts (e.g. in the Sub Main or your form's
'New'
: method), put the following lines:
:
: Application.EnableVisualStyles()
: Application.DoEvents()
:
: --
: HTH,
: -- Tom Spink, Über Geek
:
: Please respond to the newsgroup,
: so all can benefit
:
: "Chaos, Panic, Disorder, my work here is done"
:
:
: : : Can I use same control as Windows XP style in my app. Ex.: Button as
flat
: : and round coner, groupbox as round coner, all scrollbar and drop down is
: : blue etc. ... I use VB.NET 2003 on Windows XP Pro sp1 and my control is
: old
: : design
: :
: :
:
:
 
facicad said:
Can I use same control as Windows XP style in my app. Ex.: Button as flat
and round coner, groupbox as round coner, all scrollbar and drop down is
blue etc. ... I use VB.NET 2003 on Windows XP Pro sp1 and my control is old
design

NET 1.0:

Set the controls' 'FlatStyle' properties to 'System', then add an application manifest.

Tools

<http://www.msjogren.net/dotnet/eng/tools/default.asp>
-> "ThemeMe"

MSDN:

VS.NET Addin for using XP visual styles
<http://tinyurl.com/37yk>

Using XP Visual Styles in Windows Forms apps
<http://tinyurl.com/37yi>

..NET 1.1:

<http://msdn.microsoft.com/msdnmag/issues/03/03/WindowsForms/default.aspx>
 
Back
Top