O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Control Appearance and Behavior

A control’s appearance is set via the same set of basic properties used to control form appearance: Items such as ForeColor, BackColor, and Font make an appearance on most controls.

Visual Styles

One item of interest is the capability for a control to automatically alter its appearance to conform to the currently selected “Desktop Theme” if it’s running on Windows XP, Windows Vista, Windows 7, or Windows 8. This capability is enabled by a call to the Application.EnableVisualStyles method. This line of code is automatically included for you by default as the first line in the Main method. This location is ideal because it must be called before the controls in the application are actually created. If you remove ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required