Control-Naming Prefix Conventions for Visual Basic | ||
| Prefix | Control | Notes |
| ar | Arrays | e.g. StrarName(10) as string |
| ani | Animation Button | |
| anm | Animation Controln | Componant - Windows Common Controls-2 |
| brw | WebBrowser | Componant - Microsoft Internet Controls |
| cbo | Combo box | |
| ch3 | 3d check box | |
| chk | Check box | |
| clp | Picture clip | |
| cls | Class Module | |
| cm3 | 3d command button | |
| cmd | command button | |
| com | Communications | |
| ctr | Control | Specific type unknown |
| dat | data | |
| db | ODBC database | |
| dbc | Data-bound combo box | |
| dbg | Data-bound grid | |
| dbl | Data-bound list box | |
| des | Designer | |
| dir | Directory list box | |
| dlg | Common Dialog control | Componant - 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. |
| drv | Drive list box | |
| ds | ODBC dynaset | |
| fil | File list box | |
| fr3 | 3d frame | |
| fra | Frame | |
| frm | Form | |
| gau | gauge | |
| gpb | Group push button | |
| gra | Graph | |
| grd | Grid | |
| hsb | Horizontal scrollbar | |
| img | Image | |
| (imc) | ImageCombo | Componant - Windows Common Controls 6.0 Used with the ImageList Control |
| (iml) | ImageList | Componant - Windows Common Controls 6.0 Used with the ImageCombo Control Picture held in this control To be shown with ImageCombo Control. |
| key | Key status | |
| lbl | Label | |
| lin | Line | |
| lst | List box | |
| lsv | List view | |
| mci | Multimedia MCI | |
| med | Masked edit | |
| mnu | Menu | |
| mpm | MAPI message | |
| mps | MAPI 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 Control | Componant - Microsoft FlexGrid Control 6.0 Read-Only data bound control used with single table databases |
| ole | OLE client | |
| op3 | 3d option button | |
| opt | Option button | |
| out | Outline | |
| pic | Picture box | |
| pnl | 3d panel | |
| prb | ProgressBar | |
| rtf | RichTextBox | |
| shp | Shape | |
| sli | Slide | |
| spn | Spin button | |
| sst | SSTab | |
| stb | StatusBar | |
| tbs | TabStrip | |
| tlb | Toolbar | |
| tmr | Timer | |
| trv | TreeView | |
| txt | Text box | |
| (upd) | UpDown Control |
Componant - Windows Common Controls-2 Used with TextBox as a Body Control |
| usr | User Control | |
| vsb | Vertical scrollbar | |
Data Type Naming Prefixes | ||
| Prefix | Data Types | Notes |
| ar | Arrays | StrarName(10) as string |
| bin or b | Boolean | blnButtonEnabled |
| byt or t | Byte | bytLength |
| cur or c | Currency | curSales98 |
| dte or d | Date | dteOverdue |
| dbl or p | Double | dblScientificAmt |
| int or i | Integer | intYear1998 |
| lng or l | Long | lngWeatherDistance |
| obj or o | Object | opjWorksheetAcct98 |
| sng or f | Single | sngSales1stQte |
| str or s | String | strFirstName |
| vnt or v | Variant | vntValue |
| vnt or v | Variant | vntValue |