VISUAL STYLES - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

VISUAL STYLES

Description:

... between the Windows 2000 style buttons and the Windows XP/Vista style buttons. ... Windows XP. styles. Note: These styles are enabled by default when you ... – PowerPoint PPT presentation

Number of Views:109
Avg rating:3.0/5.0
Slides: 6
Provided by: dannyro
Category:
Tags: styles | visual | xpstyle

less

Transcript and Presenter's Notes

Title: VISUAL STYLES


1
VISUAL STYLES
  • VB.NET

2
What are Visual Styles?
  • To make it incredibly simple and obvious, visual
    styles make the controls you use in your VB.NET
    programs fit the natural style designed by your
    operating system (or comctl32.dll)
  • An example of visual styles would be the
    difference between the Windows 2000 style buttons
    and the Windows XP/Vista style buttons.

3
Example
Windows 2000 Boring styles
Windows XP styles
Note These styles are enabled by default when
you activate visual styles.
4
Activation
  • To activate visual styles, during the
    initialization period of your program ( right
    under InitializeComponent() ), type this
  • Application.EnableVisualStyles()
  • Then
  • Application.DoEvents()

5
This statement is to enable the visual styles.
This statement is normally not needed, but
sometimes the program message queue does not
complete and your visual styles will not enable.
This statement makes sure that all messages are
completed before continuing.
Write a Comment
User Comments (0)
About PowerShow.com