Controls

<prefix> here will identify the control type. The <Mnemonic> portion should be in proper case, with no spaces or underscores. Here we pretty much subscribe to the Microsoft Consulting Services guidelines. Some of the most common are shown in Table 4:

Table 4: Control naming

Prefix

Control

Example

cmd

command button

cmdOK, cmdOrders

txt

text box

txtCustomerID, txtFirstName

opt

option button

optYTD, optMTD, optQuarterly

chk

check box

chkCustomer, chkHealthPlan

grd

grid

grdCustomers, grdOrderDetails

fra

frame

fraQueryType, fraTimePeriod

out

outline

outCustomersOrders

dlg

common dialog

dlgCommon, dlgSaveAs

hsb

horizontal scroll bar

hsbCustomers, hsbColor