Standardized Naming Conventions for Visual Basic .NET

When you’re programming, names are important. If you’re programming with Visual Basic .NET, the following table can be a major help in getting the names right. It gives the common prefix to use when naming objects so you can quickly tell your check boxes from your combo boxes and your radio buttons from your record sets.

Prefix

Corresponding Object

Example

Prefix

Corresponding Object

Example

Acd

ActiveDoc

AcdMainPage

Hpl

HyperLink

HplURL

Chk

CheckBox

ChkBoldface

Lbl

Label

LblContents

Cbo

ComboBox

CboDropper

Lst

ListBox

LstNames

Cm

ADO command (database)

CmMyCommand

Pag

Page

PagTurn

Cmd

CommandButton

CmdExit

Pgf

PageFrame

PgfRule

Cmg

CommandGroup

CmgSelectOne

Prj

ProjectHook

PrjSuzerine

Cn

Connection (database)

CnMyConnex

Rb

RadioButton

RbBlueBackground

Con

Container

CntFramed

Rs

Recordset (database)

RsTotalSales

Ctr

Control

CtlSeeThis

Sep

Separator

SepZone

Fld

Field (database)

FldTitles

Spn

Spinner

SpnWatch

Frm

Form

FrmColors

Txt

TextBox

TxtAddress

Frs

FormSet

FrsTypeIn

Tmr

Timer

TmrAnimation

Grd

Grid

GrdGoods

Tbr

ToolBar

TbrDropThis

Grc

Column (in grid)

GrcQuantity

Tbl

Table (database)

TblTitles

Grh

Header (in grid)

GrhYearsResults

Dummies Insider

Sign up for insider news on books, authors, discounts and more content created just for you.