C#(99):.NET控件命名规范

一、基本数据类型前缀

数据类型    数据类型简写
Array    arr
Boolean    bln
Byte    byt
Char    chr
DateTime    dtm
Decimal    dec
Double    dbl
Integer    int
Long    lng
Object    obj
Short    shr
Single    sng
String    str


二、ADO.NET对象前缀

控件类型    控件类型简写
Command    cmd
Connection    conn
DataAdapter    da
DataColumn    dcol
DataReader    dr
DataRelation    Drel
DataRow    drow
DataSet    ds
DataTable    tbl
DataView    dv
Parameter    parm

三、WinForm Control 命名规范

控件类型    控件类型简写
BackgroundWorker    bgw
BindingNavigator    bdn
BindingSource    bds
Button    btn
CheckBox    chk
CheckedListBox    clst
ColorDialog    cdlg
ComboBox    cbo
ContextMenuStrip    cms
CrystalReportViewer    crv
DataGrid    dgrd
DataGridView    dgv
DataSet    dts
DateTimePicker    dtp
DirectoryEntry    dre
DirectorySearcher    drs
DomainUpDown    dud
ErrorProvider    err
EventLog    evl
FileSystemWatcher    fsw
FlowLayoutPanel    flp
FolderBrowserDialog    fbdlg
FontDialog    fdlg
Form frm
GroupBox    grp
HelpProvider    hlp
HscrollBar    hsb
ImageList    ilst
Label    lbl
LinkLabel    llbl
ListBox    lst
ListView    lvw
MainMenu    mmnu
MaskedTextBox    mtx
MenuStrip    ms
MessageQueue    msq
MonthCalendar    cdr
NotifyIcon    icn
NumeircUpDown    nud
OpenFileDialog    ofdlg
PageSetupDialog    psdlg
Panel    pnl
PerformanceCounter    pfc
PictureBox    pic
PrintDialog    pdlg
PrintDocument    pdc
PrintPreviewControl    prv
PrintPreviewDialog    ppd
Process    prc
ProgressBar    pgb
PropertyGrid    prg
RadioButton    rbtn
ReportDocument    rpd
ReportViewer    rpv
RichTextBox    rtx
SaveFileDialog    sfdlg
SerialPort     spt
ServiceController    scl
SplitContainer    spc
Splitter    spl
StatusBar    stb
StatusStrip    ss
TabControl    tab
TableLayoutPanel    tlp
TextBox    txt
Timer    tmr
ToolBar    tlb
ToolStrip    ts
ToolStripButton    tsbtn
ToolStripContainer    tsc
ToolStripDropDownButton    tsddbtn
ToolStripLabel    tslbl
ToolStripMenuItem    tsmi
ToolStripSeparator    tss
ToolStripSplitButton    tssbtn
ToolTip    tip
TrackBar    trb
TreeView    tvw
VscrollBar    vsb
WebBrowser    wbs


四、WebControl 命名规范

控件类型    控件类型简写
Adrotator    adrt
BulletedList    blst
Button    btn
Calendar    cal
CheckBox    chk
CheckBoxList    chkl
CompareValidator    valc
CustomValidator    valx
DataGrid    dg
DataList    dl
DetailsView dtv
DropDownList    ddl
FileUpLoad    fup
FormView fmv
GridView grv
HiddenField    hfld
HyperLink    lnk
Image    img
ImageButton    ibtn
ImageMap    imap
Label    lbl
LinkButton    lbtn
ListBox    lst
Literal    ltl
Localize    loc
MultiView    mvw
Panel    pnl
PlaceHolder    plh
RadioButton    rad
RadioButtonList    radl
RangeValidator    valg
RegularExpression    reg
Repeater    rpt
RequiredFieldValidator    valr
SubStitution    subs
Table    tbl
TableCell    tblc
TableRow    tblr
TextBox    txt
ValidationSummary    vals
View    vw
Wizard    wiz
原文地址:https://www.cnblogs.com/springsnow/p/9391868.html