Hi Friends.
How to make that the controls and button of the forms are similar to Windows Xp with VB net .
Thanks you.
:wave:
Printable View
Hi Friends.
How to make that the controls and button of the forms are similar to Windows Xp with VB net .
Thanks you.
:wave:
First you have to have VS.NET 2003 to enable the XP Visual Look in your app . Then search the forum for post threads .
With the .NET Framework 1.1:
Step 1: Put the following code at the end of the Public Sub New() procedure:
Application.EnableVisualStyles()
Step 2: Then set the FlatStyle property to System for all controls that have that property available to them.
And Like Magic your app will use WinXP Visual Styles when run on WinXP, and will still run appropriate without Visual Styles on Win98/WinME.
And to clarify in case you don't know, Visual Studio .NET 2003 uses .NET v1.1 and Visual Studio .NET 2002 uses .NET v1.0. And, the .NET Framework 1.0 doesn't support the Application.EnableVisualStyles() function.