Results 1 to 3 of 3

Thread: controls and button style Windows Xp

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    4

    Thumbs up 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.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    First you have to have VS.NET 2003 to enable the XP Visual Look in your app . Then search the forum for post threads .

  3. #3
    Hyperactive Member
    Join Date
    May 2002
    Location
    Wisconsin, USA
    Posts
    279
    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
  •  



Click Here to Expand Forum to Full Width