C#控件命名规范
时间:2021-07-01 10:21:17
帮助过:44人阅读
控件名 前缀
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