471,073 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

windows xp stylee buttons?

is it possible to make vb.net apps have xp style buttons in xp?

Stephen
Nov 22 '05 #1
12 1524
The buttons will have the XP look and feel by default if run under XP, but
check out this link...
http://www.codeproject.com/cs/miscct...yle_button.asp

HTH,

Bill

"Stephen Remde" <sp*******@smremde.co.uk> wrote in message
news:uV*************@TK2MSFTNGP11.phx.gbl...
is it possible to make vb.net apps have xp style buttons in xp?

Stephen

Nov 22 '05 #2
the buttons on mine are not xp style by default, neither are the frames -
dont know what else is different on xp!
i am running xp pro with sp1 and further updates.
puzzling?

"William Ryan" <do********@nospam.comcast.net> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
The buttons will have the XP look and feel by default if run under XP, but
check out this link...
http://www.codeproject.com/cs/miscct...yle_button.asp

HTH,

Bill

"Stephen Remde" <sp*******@smremde.co.uk> wrote in message
news:uV*************@TK2MSFTNGP11.phx.gbl...
is it possible to make vb.net apps have xp style buttons in xp?

Stephen


Nov 22 '05 #3
Hmm, that is puzzling. Obviously I'm wrong about the default, but we've
deployed 300+ of our apps on both XP Home and XP Pro Apps and they all
switch accordingly.

I'll look around some more and see if I can find anything...sorry about the
bum tip, I just took it for granted that all XP systems/SPs etc would have
the same behavior.

I'll get back shortly if I can find anything.

Cheers,

Bill
"Stephen Remde" <sp*******@smremde.co.uk> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
the buttons on mine are not xp style by default, neither are the frames -
dont know what else is different on xp!
i am running xp pro with sp1 and further updates.
puzzling?

"William Ryan" <do********@nospam.comcast.net> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
The buttons will have the XP look and feel by default if run under XP, but check out this link...
http://www.codeproject.com/cs/miscct...yle_button.asp

HTH,

Bill

"Stephen Remde" <sp*******@smremde.co.uk> wrote in message
news:uV*************@TK2MSFTNGP11.phx.gbl...
is it possible to make vb.net apps have xp style buttons in xp?

Stephen



Nov 22 '05 #4
Oddly, they will not be by default.

What you need to do is change the buttons 'flatstyle' property to be system,
not standard as they probably are

Then the buttons will be XP style then.

If you using VS 2003, then search on XP Theme the help section filtered to
'visual basic' and you will see the doco on how do do other controls as
well.


"William Ryan" <do********@nospam.comcast.net> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Hmm, that is puzzling. Obviously I'm wrong about the default, but we've
deployed 300+ of our apps on both XP Home and XP Pro Apps and they all
switch accordingly.

I'll look around some more and see if I can find anything...sorry about the bum tip, I just took it for granted that all XP systems/SPs etc would have
the same behavior.

I'll get back shortly if I can find anything.

Cheers,

Bill
"Stephen Remde" <sp*******@smremde.co.uk> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
the buttons on mine are not xp style by default, neither are the frames -
dont know what else is different on xp!
i am running xp pro with sp1 and further updates.
puzzling?

"William Ryan" <do********@nospam.comcast.net> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
The buttons will have the XP look and feel by default if run under XP,

but check out this link...
http://www.codeproject.com/cs/miscct...yle_button.asp

HTH,

Bill

"Stephen Remde" <sp*******@smremde.co.uk> wrote in message
news:uV*************@TK2MSFTNGP11.phx.gbl...
> is it possible to make vb.net apps have xp style buttons in xp?
>
> Stephen
>
>



Nov 22 '05 #5
Thanks for the tip, that makes sense. We always use System, so when our
stuff showed up in XP format by default on the XP boxes, I just assumed
(incorrectly) that it was the default behavior.

Thanks again,

Bill
"AussieRules" <so*****@nowhere.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
Oddly, they will not be by default.

What you need to do is change the buttons 'flatstyle' property to be system, not standard as they probably are

Then the buttons will be XP style then.

If you using VS 2003, then search on XP Theme the help section filtered to 'visual basic' and you will see the doco on how do do other controls as
well.


"William Ryan" <do********@nospam.comcast.net> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Hmm, that is puzzling. Obviously I'm wrong about the default, but we've
deployed 300+ of our apps on both XP Home and XP Pro Apps and they all
switch accordingly.

I'll look around some more and see if I can find anything...sorry about

the
bum tip, I just took it for granted that all XP systems/SPs etc would have
the same behavior.

I'll get back shortly if I can find anything.

Cheers,

Bill
"Stephen Remde" <sp*******@smremde.co.uk> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
the buttons on mine are not xp style by default, neither are the frames - dont know what else is different on xp!
i am running xp pro with sp1 and further updates.
puzzling?

"William Ryan" <do********@nospam.comcast.net> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
> The buttons will have the XP look and feel by default if run under

XP, but
> check out this link...
> http://www.codeproject.com/cs/miscct...yle_button.asp
>
> HTH,
>
> Bill
>
> "Stephen Remde" <sp*******@smremde.co.uk> wrote in message
> news:uV*************@TK2MSFTNGP11.phx.gbl...
> > is it possible to make vb.net apps have xp style buttons in xp?
> >
> > Stephen
> >
> >
>
>



Nov 22 '05 #6
On Sun, 23 Nov 2003 00:48:18 -0000, "AussieRules" <so*****@nowhere.com> wrote:
Oddly, they will not be by default.

What you need to do is change the buttons 'flatstyle' property to be system,
not standard as they probably are

Then the buttons will be XP style then.

Nope... you still need to make a call to Application.EnableVisualStyles() in the
application. I just tried it here. Just changing the button's FlatStyle
property did not do the trick.

Nov 22 '05 #7
On Sat, 22 Nov 2003 18:12:47 -0500, in microsoft.public.dotnet.general you
wrote:
The buttons will have the XP look and feel by default if run under XP, but
check out this link...
http://www.codeproject.com/cs/miscct...yle_button.asp

Actually... nope. If you set the FlatStyle property of the button to System,
you still get standard, flat buttons unless you make a call to
Application.EnableVisualStyles() in the application.

Just tried it here.

Nov 22 '05 #8
Kerry Sanders wrote:
On Sun, 23 Nov 2003 00:48:18 -0000, "AussieRules"
<so*****@nowhere.com> wrote:
Oddly, they will not be by default.

What you need to do is change the buttons 'flatstyle' property to be
system, not standard as they probably are

Then the buttons will be XP style then.

Nope... you still need to make a call to
Application.EnableVisualStyles() in the application. I just tried it
here. Just changing the button's FlatStyle property did not do the
trick.


Don't use that! I've found Application.EnableVisualStyles to be very buggy
in .Net Framework 1.1. Instead, create a manifest to reference comctl32.dll
version 6. Just create a text file with the following contents:

-----
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="CompanyName.ProductName.YourApplication"
type="win32"
/>
<description>Your application description here.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
-----

Call that file 'myapp.exe.manifest' (replace myapp.exe with the name of your
application's executable) and put it in the same directory as the
executable.

--
Unforgiven

"Most people make generalisations"
Freek de Jonge
Nov 22 '05 #9
On Sun, 23 Nov 2003 15:06:41 +0100, in microsoft.public.dotnet.general you
wrote:
Don't use that! I've found Application.EnableVisualStyles to be very buggy
in .Net Framework 1.1. Instead, create a manifest to reference comctl32.dll


Thanks for the post. Just for the record, what kind of issues have you found
when using Application.EnableVisualStyles?

Nov 22 '05 #10
hmm, i have no function Application.EnableVisualStyles() ? is this framework
1.1? i have it installed, but my vs came with 1.0 - do i need to update
visual studios to use it?

Stephen

"Kerry Sanders" <di****@NOSPAMyahoo.com> wrote in message
news:30********************************@4ax.com...
On Sat, 22 Nov 2003 18:12:47 -0500, in microsoft.public.dotnet.general you
wrote:
The buttons will have the XP look and feel by default if run under XP, butcheck out this link...
http://www.codeproject.com/cs/miscct...yle_button.asp

Actually... nope. If you set the FlatStyle property of the button to

System, you still get standard, flat buttons unless you make a call to
Application.EnableVisualStyles() in the application.

Just tried it here.

Nov 22 '05 #11
On Mon, 24 Nov 2003 19:22:29 -0000, "Stephen Remde" <sp*******@smremde.co.uk>
wrote:
hmm, i have no function Application.EnableVisualStyles() ? is this framework
1.1? i have it installed, but my vs came with 1.0 - do i need to update
visual studios to use it?

I am using Visual Studio .NET 2003. I do not know if this is specific to v1.1
of the Framework or not, though. Sounds like it may be.

Nov 22 '05 #12
"William Ryan" <do********@nospam.comcast.net> wrote in message
news:ee**************@TK2MSFTNGP12.phx.gbl...
The buttons will have the XP look and feel by default if run under XP


Only the nonclient area of the window will have the XP look by default.

-- Alan
Nov 22 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.