Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

Standardized Naming Conventions for Visual Basic .NET

Part of the Visual Basic.NET All-in-One Desk Reference For Dummies Cheat Sheet

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
  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus

SERIES
Visual Basic.NET All-in-One Desk Reference For Dummies Cheat Sheet

Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win $500. Easy.