473,325 Members | 2,608 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,325 software developers and data experts.

Controls and button style Windows XP


How to make that the controls and button of the forms are similar to Windows
Xp with VB net .


Nov 20 '05 #1
4 3456
You have to set the buttons and othe rcontrols to use System instead of
standard and then also add a manifest file with the same name as the exe in
the same directory as the exe... plus the Manifest extention.

So if you have an Exe name "MyApplication.exe" you also need a manifest-file
called "MyApplication.exe.manifest" in the same directory and that file
should include this:

--------------------------------------------------

<?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="namespace" type="win32"
/><description>My Great Solution</description><dependency>
<dependentAssembly> <assemblyIdentity type="win32"
name="Microsoft.Windows.Common-Controls" version="6.0.0.0"
processorArchitecture="X86" publicKeyToken="6595b64144ccf1df"
language="*" /> </dependentAssembly></dependency></assembly>

--------------------------------------------------
Change the part in the provided text where it says namespace to the name of
your namespace.

/Lars


"GUSTAVO V.P." <ga****@hotmail.com> skrev i meddelandet
news:uS**************@TK2MSFTNGP12.phx.gbl...

How to make that the controls and button of the forms are similar to Windows Xp with VB net .

Nov 20 '05 #2
* "GUSTAVO V.P." <ga****@hotmail.com> scripsit:
How to make that the controls and button of the forms are similar to Windows
Xp with VB net .


<URL:http://msdn.microsoft.com/library/en-us/dnwxp/html/xptheming.asp>

My FAQ:

NET 1.0:

Set the controls' 'FlatStyle' properties to 'System', then add an
application manifest.

Tools

<URL:http://www.msjogren.net/dotnet/eng/tools/default.asp>
-> "ThemeMe"

Anternativ:

<URL:http://dotnet.mvps.org/dotnet/samples/tools/>
-> "ThemeUtil"

MSDN:

VS.NET Addin for using XP visual styles
<URL:http://tinyurl.com/37yk>

Using XP Visual Styles in Windows Forms apps
<URL:http://tinyurl.com/37yi>

..NET 1.1:

<URL:http://msdn.microsoft.com/msdnmag/issues/03/03/WindowsForms/>

\\\
Application.EnableVisualStyle()
Application.DoEvents() ' Bug fix.
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
If you have the .NET Framework 1.1 you can use
Application.EnableVisualStyles followed by Application.DoEvents to achieve
the same task as the actual manifest file.

"Lars Netzel" <no****@no.no> wrote in message
news:eN*************@TK2MSFTNGP11.phx.gbl...
You have to set the buttons and othe rcontrols to use System instead of
standard and then also add a manifest file with the same name as the exe
in
the same directory as the exe... plus the Manifest extention.

So if you have an Exe name "MyApplication.exe" you also need a
manifest-file
called "MyApplication.exe.manifest" in the same directory and that file
should include this:

--------------------------------------------------

<?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="namespace" type="win32"
/><description>My Great Solution</description><dependency>
<dependentAssembly> <assemblyIdentity type="win32"
name="Microsoft.Windows.Common-Controls" version="6.0.0.0"
processorArchitecture="X86" publicKeyToken="6595b64144ccf1df"
language="*" /> </dependentAssembly></dependency></assembly>

--------------------------------------------------
Change the part in the provided text where it says namespace to the name
of
your namespace.

/Lars


"GUSTAVO V.P." <ga****@hotmail.com> skrev i meddelandet
news:uS**************@TK2MSFTNGP12.phx.gbl...

How to make that the controls and button of the forms are similar to

Windows
Xp with VB net .


Nov 20 '05 #4
Hi,

In addition to Herfried's comments.
http://www.thecodeproject.com/vb/net/XPStyleB.asp

Ken
----------------

"GUSTAVO V.P." <ga****@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP12.phx.gbl:
How to make that the controls and button of the forms are similar to
Windows
Xp with VB net .


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.1.2 - Release Date: 6/7/2004
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
1
by: Jax | last post by:
I am looking to populate web page with controls as a result of a database query. eg (pseudocode) <% foreach(Garment g in GetStuffFromDB()) { //add controls Response.Write("<asp:Button id =...
2
by: bebop | last post by:
I'm using three checkbox web controls in C# .NET and one button, and one labe Is there a way to "group" these individual checkbox web controls If so, do I use a for loop, hashtable, array,...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
2
by: c676228 | last post by:
Hi, I created a group of user controls in an aspx form. which is as follow: <body> <form id="Form1" method="post" runat="server"> <SUBWAY:PEOPLEINFO id="Peopleinfo0" runat="server"...
0
by: Tim Marshall | last post by:
A2003. I rather like the appearance I get with windows themed controls turned on, but I'm running into an odd problem with tab controls. When I set the back style to transparent, it really isn't...
8
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a...
5
by: Doc John | last post by:
I need to create several Windows Forms and I'm thinking of creating a base Form from which I can derive all Forms. Is it possible to include something in that Base Form so that all Forms I create...
5
by: Paul Hemans | last post by:
Hi, I am using VS2005. I have a form with a tabControl on it. Suddenly I can no longer see any of my controls, on any of the pages, or even the tabControl itself. They still exist because the...
11
by: dhtml | last post by:
(originally mis-posted on m.p.s.jscript...) I've just closed all windows in Firefox and its using 244MB of memory. I have no idea why. I had GMail open, a page from unicode, the CLJ FAQ. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.