C#控件命名规范
作者:
C#控件命名规范,遵守规范有利于代码的可维护性。
控件名 前缀
Lable lbl
TextBox txt
Button btn
LinkButton lnkbtn
ImageButton imgbtn
ListBox lst
DropDownList ddl
DataGrid dg
DataList dl
CheckBox chk
RadioButton rdo
RadioButtonList rdolst
Image img
Panel pnl
Calender cal
AdRotator ar
MenuStrip ms
ToolStripMenuItem tsmi
PictureBox pic
StatusStrip ss
DataGridView dgv
Table tbl
RequiredFieldValidator rfv
Comparidator cv
Rangidator rv
ReqularExpressionValidator rev
ValidatorSummary vs
CrystalReportViewer rptvew
ComboBox cbo
DataGridView dgv
GroupBox grp
ImageList il
ListView lv
ColumnHeader ch
StatusLable slbl
TabControl tab
TabPage tp
Timer tmr
ToolStrip ts
ToolStripButton tsbtn
ToolStripDropDownButton tsddb
DomainUpDown dud
FileUpload ful
Repeater rpt
Lable lbl
TextBox txt
Button btn
LinkButton lnkbtn
ImageButton imgbtn
ListBox lst
DropDownList ddl
DataGrid dg
DataList dl
CheckBox chk
RadioButton rdo
RadioButtonList rdolst
Image img
Panel pnl
Calender cal
AdRotator ar
MenuStrip ms
ToolStripMenuItem tsmi
PictureBox pic
StatusStrip ss
DataGridView dgv
Table tbl
RequiredFieldValidator rfv
Comparidator cv
Rangidator rv
ReqularExpressionValidator rev
ValidatorSummary vs
CrystalReportViewer rptvew
ComboBox cbo
DataGridView dgv
GroupBox grp
ImageList il
ListView lv
ColumnHeader ch
StatusLable slbl
TabControl tab
TabPage tp
Timer tmr
ToolStrip ts
ToolStripButton tsbtn
ToolStripDropDownButton tsddb
DomainUpDown dud
FileUpload ful
Repeater rpt