Controls should be named in a consistent manner, with a prefix to identify the object type.
Here are some suggestions:-
Control type | prefix | Example |
---|---|---|
Check box | chk | chkIncludeHeader |
Combo box | cbo | cboOptType |
Command button | cmd | cmdClose |
Frame | fra | fraResult |
Form | frm | frmOptPricer |
Image | img | imgXLFx32 |
Label | lbl | lblLogo |
List box | lst | lstContacts |
Multi page | mup | mupModels |
Option button | opt | optModels |
Scroll bar | scr | scrIntRate |
Spin button | spn | spnPages |
Tab strip | tbs | tbsMethods |
Text box | txt | txtStkPrice |
Toggle button | tgl | tglFullScreen |