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.



































































































































PrefixCorresponding ObjectExamplePrefixCorresponding ObjectExample
AcdActiveDocAcdMainPageHplHyperLinkHplURL
ChkCheckBoxChkBoldfaceLblLabelLblContents
CboComboBoxCboDropperLstListBoxLstNames
CmADO command (database)CmMyCommandPagPagePagTurn
CmdCommandButtonCmdExitPgfPageFramePgfRule
CmgCommandGroupCmgSelectOnePrjProjectHookPrjSuzerine
CnConnection (database)CnMyConnexRbRadioButtonRbBlueBackground
ConContainerCntFramedRsRecordset (database)RsTotalSales
CtrControlCtlSeeThisSepSeparatorSepZone
FldField (database)FldTitlesSpnSpinnerSpnWatch
FrmFormFrmColorsTxtTextBoxTxtAddress
FrsFormSetFrsTypeInTmrTimerTmrAnimation
GrdGridGrdGoodsTbrToolBarTbrDropThis
GrcColumn (in grid)GrcQuantityTblTable (database)TblTitles
GrhHeader (in grid)GrhYearsResults










dummies

Source:http://www.dummies.com/how-to/content/standardized-naming-conventions-for-visual-basic-n.html

No comments:

Post a Comment