Controls and button style Windows XP

  • Thread starter Thread starter GUSTAVO V.P.
  • Start date Start date
G

GUSTAVO V.P.

How to make that the controls and button of the forms are similar to Windows
Xp with VB net .
 
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>
 
* "GUSTAVO V.P. said:
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.
///
 
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.
 
Back
Top