Xp visual style on a vb.net application?
Hi,
I have just been trying to get the XP Visual style in my application (like the buttons and stuff) But how can I do it?
I did
VB Code:
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
Application.EnableVisualStyles()
'Add any initialization after the InitializeComponent() call
End Sub
And set the button I want on its property of FlatStyle = System but it doesn't work...
Is there something that I have to do first or something should be?
Thanks,
The answer to your problem
you will not believe this, it hasbeen posted here before:##this is what you need to do:
create a module caled sub main and use the application.run to get the application started,
the use doevents an example follows:
Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Dim f1 As New Hub
Application.Run(f1)
Application.Exit()
manifest file not working
are you saying that i just add this file to my /bin directory (named something.manifest) and then change the flatstyle property of all my controls to system? and i don't have to redo anything after i recompile?
what do i have to put in for all the bold values (or anything else that needs to be changed?, considering that the version number changes every time i recompile?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="Insert Your Exact Version Number Here"
processorArchitecture="X86"
name="Name of Application"
type="win32"
/>
<description>Description of Application</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
from Karl E. Peterson....