Control Style XP

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
 
T

Tom Spink

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
:
:
 
T

Tom Spink

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
: :
: :
:
:
 
H

Herfried K. Wagner [MVP]

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top