visual basic.net textbox & label controls. textbox naming convention (txt) primary use (user...

11
Visual Basic.net Textbox & Label Controls

Upload: georgiana-mcgee

Post on 03-Jan-2016

217 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

Visual Basic.net

Textbox & Label Controls

Page 2: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

Textbox

• Naming convention (txt)

• Primary use (user input)

• Can except numeric and character values

Page 3: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

Textbox

Textbox

Page 4: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

Textbox (properties)

• The basic properties set in a text box are• Name (txtFName)• Alignment (where text appears)• Password Character (set only for a use in a

password form)• Text (set to the “” set)• visibility (True)

Page 5: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

Label

• Naming convention (lbl)

• Primary use (used to label the contents of an object)

• Secondary use (used to display the results of an event)

Page 6: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

Label

Label

Page 7: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

Syntax (textbox & label)

The following block of VB codedemonstrates the use of these controls

lblFName.Caption = txtFName.Text

*note this code would appear in a commandbutton

Page 8: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

Command Button

Naming convention (btn)

Primary use: activation of lines of

executable code during runtime of your

Visual Basic programs

Page 9: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

Command Button

Command Button

Page 10: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

GroupBox

Naming Convention (fra)

Primary use: Grouping of like controls

Page 11: Visual Basic.net Textbox & Label Controls. Textbox Naming convention (txt) Primary use (user input) Can except numeric and character values

GroupBox

GroupBox