Examples Using Common Controls in .NET

Over the next several pages examples are provided to show usage of specific controls that you can use in the development of your Windows applications using Visual Basic .NET.


Labels are controls used mostly to display static text on a form. Labels are typically used in conjunction with TextBox controls to describe the type of data contained in the text boxes. The Label class inherits from the Control class.

A new kind of label is also introduced as part of the System.Windows.Forms namespace. This kind of label is called a LinkLabel and allows you to display text on a form just like a normal label. However, you can also define fragments of the text to be Web links such that if you click on the fragment ...

Get Visual Basic® .NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.