By default, VB will name elements based off of what they are, ie: the first label you put down is named Label 1, and the second is Label 2; same goes for command buttons and all other items in the tool box. (See Tool Box)
Keep in mind that you can name these things what ever you want, but in my tutorials I will be using correct naming structures. It is best if you know them for when you learn to make mroe advanced programs in the future. They help organize them and make coding your programs much much easier.
For the following, "Name" constitutes what you want to name the object.
* Form Level
o Form
+ frmName
* Tool Box
o Picture Box
+ picName
o Label
+ lblName
o Text Box
+ txtName
o Frame
+ fraName
o Command Button
+ cmdName
o Check Boxes
+ chkName
o Option Buttons
+ optName
o Combo Boxes
+ cmbName
o List Boxes
+ lstName
o Scroll Bars
+ hsbName for Horizontal and vsbName for Vertical
o Timer
+ tmrName
o Drive List Box
+ drvName
o Directory List Box
+ dirName
o File List Box
+ filName
o Shape
+ shpName
o Line
+ linName
o Image (there is a difference between Image and Picture Box)
+ imgName
o Ole Client
+ oleName
* Menu
o Menu
+ mnuName
* Variables (See Variable tutorial for more info)
o String
+ strName
o Integers
+ intName
o Currency
+ curName
o Boolean
+ blnName
o Byte
+ bytName
o Date
+ dteName
o Double
+ dblName
o Single
+ sngName
o Long
+ lngName
o Object
+ objName
o Variants
+ varName
Comments
Post new comment