473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 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 1597
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
by: Stephen Remde | last post by:
is it possible to make vb.net apps have xp style buttons in xp? Stephen
6
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
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...

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.