Control-Naming Prefix Conventions for Visual Basic

PrefixControlNotes
arArrayse.g. StrarName(10) as string
aniAnimation Button
anmAnimation ControlnComponant - Windows Common Controls-2
brwWebBrowserComponant - Microsoft Internet Controls
cboCombo box
ch33d check box
chkCheck box
clpPicture clip
clsClass Module
cm33d command button
cmdcommand button
comCommunications
ctrControlSpecific type unknown
datdata
dbODBC database
dbcData-bound combo box
dbgData-bound grid
dblData-bound list box
desDesigner
dirDirectory list box
dlgCommon Dialog controlComponant - Microsoft Common Dialog Control 6.0
COMDLG32.DLL is used by the COMDLG32.OCX
ActiveX Control

Six standard Windows dialog boxes
Open - allows users to select files to open.
Save As - allows users to choose a filename to save.
Font - lets users choose a base font and set any font attributes they want.
Color - allows users to choose from a starndard color or create a custom
             color for use in the program.
Print - lets users select a printer and set some of the printer parameters.
Help - accesses the Windows help engine to display the referenced help file.
drvDrive list box
dsODBC dynaset
filFile list box
fr33d frame
fraFrame
frmForm
gaugauge
gpbGroup push button
graGraph
grdGrid
hsbHorizontal scrollbar
imgImage
(imc)ImageComboComponant - Windows Common Controls 6.0
Used with the ImageList Control
(iml)ImageListComponant - Windows Common Controls 6.0
Used with the ImageCombo Control
Picture held in this control
To be shown with ImageCombo Control.
keyKey status
lblLabel
linLine
lstList box
lsvList view
mciMultimedia MCI
medMasked edit
mnuMenu
mpmMAPI message
mpsMAPI session
(mfh)MSHFlexGrid Control Componant - Microsoft Hierarchical FlexGrid Control 6.0 (OLEDB)
Read-Only data bound control
used with multiple table queries in a hierarchical format
(mfg)MSFlexGrid ControlComponant - Microsoft FlexGrid Control 6.0
Read-Only data bound control
used with single table databases
oleOLE client
op33d option button
optOption button
outOutline
picPicture box
pnl3d panel
prbProgressBar
rtfRichTextBox
shpShape
sliSlide
spnSpin button
sstSSTab
stbStatusBar
tbsTabStrip
tlbToolbar
tmrTimer
trvTreeView
txtText box
(upd)UpDown Control Componant - Windows Common Controls-2
Used with TextBox as a Body Control
usrUser Control
vsbVertical scrollbar

Data Type Naming Prefixes

PrefixData TypesNotes
arArraysStrarName(10) as string
bin or bBooleanblnButtonEnabled
byt or tBytebytLength
cur or cCurrencycurSales98
dte or dDatedteOverdue
dbl or pDoubledblScientificAmt
int or iIntegerintYear1998
lng or lLonglngWeatherDistance
obj or oObjectopjWorksheetAcct98
sng or fSinglesngSales1stQte
str or sStringstrFirstName
vnt or vVariantvntValue
vnt or vVariantvntValue



VB Page

HOME


Last update:   8-9-2003 at 11:47am