|
-
Jun 14th, 2004, 08:52 PM
#1
Thread Starter
New Member
controls and button style Windows Xp
Hi Friends.
How to make that the controls and button of the forms are similar to Windows Xp with VB net .
Thanks you.
-
Jun 15th, 2004, 04:46 PM
#2
Sleep mode
First you have to have VS.NET 2003 to enable the XP Visual Look in your app . Then search the forum for post threads .
-
Jun 15th, 2004, 09:53 PM
#3
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|