Tutorial 4

5
Tutorial 4 Designing the Inventory Application.

description

Tutorial 4. Designing the Inventory Application. Naming Controls. Instead of using generic names created by VB .Net, use unique and informative names E.g. TextBox1 vs. txtSalesAmount The txt prefix indicates it is a TextBox control “SalesAmount” tells it is something about sales amount - PowerPoint PPT Presentation

Transcript of Tutorial 4

Page 1: Tutorial 4

Tutorial 4

Designing the Inventory Application.

Page 2: Tutorial 4

Naming Controls

Instead of using generic names created by VB .Net, use unique and informative names

E.g. TextBox1 vs. txtSalesAmount The txt prefix indicates it is a TextBox control “SalesAmount” tells it is something about sales

amount Sentence-style capitalization. Capitalize the

first letter of each word instead of a blank space

Continue

Page 3: Tutorial 4

Suggested Prefixes for ControlsControl Prefix Form Frm

Button btn ComboBox cbo CheckBox chk

Label lbl ListBox lst

MainMenu mnu RadioButton rdb PictureBox pic

TextBox txt

Page 4: Tutorial 4

Label and Textbox Controls

Labels: Displaying information or output. Textbox: Read in input data

Continue

Page 5: Tutorial 4

What Happens After Debug

After a successful Debug run, VB .Net creates an executable (exe) file in the Bin folder of the Project.