473,511 Members | 14,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

windows xp stylee buttons?

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

Stephen
Nov 22 '05 #1
12 1601
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
388
by: Stephen Remde | last post by:
is it possible to make vb.net apps have xp style buttons in xp? Stephen
6
11192
by: Charles Neitzel | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running...
1
3138
by: Charles | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.