C# · 12月 21, 2021

C#控件命名规范

控件名 前缀
Lable lbl
Text@R_682_2419@ txt
Button btn
LinkButton lnkbtn
ImageButton imgbtn
List@R_682_2419@ lst
DropDownList ddl
DataGrid dg
DataList dl
Check@R_682_2419@ chk
RadioButton rdo
RadioButtonList rdolst
Image img
Panel pnl
Calender cal
Adrotator ar
MenuStrip ms
ToolStripMenuItem tsmi
Picture@R_682_2419@ pic
StatusStrip ss
DataGridView dgv
Table tbl
requiredFieldValidator rfv
Comparidator cv
Rangidator rv
ReqularExpressionValidator rev
ValidatorSummary vs
CrystalReportViewer rptvew
Combo@R_682_2419@ cbo
DataGridView dgv
Group@R_682_2419@ 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