Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I use XP Themes with Windows Forms using the .NET FrameWork 1.0?

Follow these steps to introduce Windows XP visual styles into your Windows application.

1. Create a new Windows Application and add some controls to the default form.

2. For every control you place on the form that has a FlatStyle property, set the property to System.

3. Compile your application.

4. Build a manifest file in the application directory. NOTE: This manifest file must be located in the same directory as the executable. Open Notepad and place the code shown below in the file.

Contributed from George Shepherd's Windows Forms FAQ

Layout

    What control should I use to create separator lines between controls on a form?

    Use the Label control with its BorderStyle set to Fixed3D and height set to 2.

    Contributed from George Shepherd's Windows Forms FAQ



Page view counter