473,625 Members | 3,254 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 1620
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*******@smre mde.co.uk> wrote in message
news:uV******** *****@TK2MSFTNG P11.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********@nos pam.comcast.net > wrote in message
news:ee******** ******@TK2MSFTN GP12.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*******@smre mde.co.uk> wrote in message
news:uV******** *****@TK2MSFTNG P11.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...sorr y 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*******@smre mde.co.uk> wrote in message
news:%2******** *******@tk2msft ngp13.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********@nos pam.comcast.net > wrote in message
news:ee******** ******@TK2MSFTN GP12.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*******@smre mde.co.uk> wrote in message
news:uV******** *****@TK2MSFTNG P11.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********@nos pam.comcast.net > wrote in message
news:%2******** **********@TK2M SFTNGP11.phx.gb l...
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...sorr y 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*******@smre mde.co.uk> wrote in message
news:%2******** *******@tk2msft ngp13.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********@nos pam.comcast.net > wrote in message
news:ee******** ******@TK2MSFTN GP12.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*******@smre mde.co.uk> wrote in message
news:uV******** *****@TK2MSFTNG P11.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
"AussieRule s" <so*****@nowher e.com> wrote in message
news:O1******** ******@TK2MSFTN GP09.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********@nos pam.comcast.net > wrote in message
news:%2******** **********@TK2M SFTNGP11.phx.gb l...
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...sorr y 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*******@smre mde.co.uk> wrote in message
news:%2******** *******@tk2msft ngp13.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********@nos pam.comcast.net > wrote in message
news:ee******** ******@TK2MSFTN GP12.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*******@smre mde.co.uk> wrote in message
> news:uV******** *****@TK2MSFTNG P11.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, "AussieRule s" <so*****@nowher e.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.Ena bleVisualStyles () 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.publi c.dotnet.genera l 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.Ena bleVisualStyles () in the application.

Just tried it here.

Nov 22 '05 #8
Kerry Sanders wrote:
On Sun, 23 Nov 2003 00:48:18 -0000, "AussieRule s"
<so*****@nowher e.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.Ena bleVisualStyles () 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.Ena bleVisualStyles 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:sche mas-microsoft-com:asm.v1" manifestVersion ="1.0">
<assemblyIdenti ty
version="1.0.0. 0"
processorArchit ecture="X86"
name="CompanyNa me.ProductName. YourApplication "
type="win32"
/>
<description>Yo ur application description here.</description>
<dependency>
<dependentAssem bly>
<assemblyIdenti ty
type="win32"
name="Microsoft .Windows.Common-Controls"
version="6.0.0. 0"
processorArchit ecture="X86"
publicKeyToken= "6595b64144ccf1 df"
language="*"
/>
</dependentAssemb ly>
</dependency>
</assembly>
-----

Call that file 'myapp.exe.mani fest' (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.publi c.dotnet.genera l you
wrote:
Don't use that! I've found Application.Ena bleVisualStyles 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.Ena bleVisualStyles ?

Nov 22 '05 #10

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
11214
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 programs and executing registry entries. The majority of my buttons work however, I have come upon a problem. I need a few of the buttons to run DOS batch files, the batch files in turn run program installers (specifically windows update runtime .exe...
1
3170
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 programs and executing registry entries. The majority of my buttons work however, I have come upon a problem. I need a few of the buttons to run DOS batch files, the batch files in turn run program installers (specifically windows update runtime .exe...
0
8694
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8356
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7184
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6118
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4089
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4193
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1500
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.