Home » VB.NET Basics » 03 - Forms
3

Labels, Textbox, Properties

Introduction to Labels, Textbox, Properties and Command Buttons

The Label

The label is the way you put text on your user form. If you want your user to know what certain things are for then you have to use the label. Click on the label button and put a label on your user form.

The Textbox

The textbox is the way the user puts text on the user form. If you want an input in the form of text, number, or symbol, then you should simply put a textbox in your user form. Try putting a textbox on your user form now.

The Command Button

The command button is a control on the user form that is used to prompt action. Action can come in the form of running a code, closing an application, or simply clearing input made by a user. Click on the command button control on the toolbox and place one on your user form.

Properties

Every object that you have in your program will have properties. You can modify the properties of any object on the properties box. It is normally located in the lower right corner of your screen. You can modify attributes like the alignment, style, and labels. Modify the text that will appear on the first label that you created.

Shown above is the properties box. You can modify the attributes and the characteristics of your objects with this tool.