本文详细讲述了C#的winform控件命名规范。分享给大家供大家参考。具体如下:
注:这里用红字标记的部分表示有重复出现,括号内为替代表示方案
1.标准控件
|
序号 |
控件类型简写 |
控件类型 |
|
1 |
btn |
Button |
|
2 |
chk |
CheckBox |
|
3 |
ckl |
CheckedListBox |
|
4 |
cmb |
ComboBox |
|
5 |
dtp |
DateTimePicker |
|
6 |
lbl |
Label |
|
7 |
llb |
LinkLabel |
|
8 |
lst |
ListBox |
|
9 |
lvw |
ListView |
|
10 |
mtx |
MaskedTextBox |
|
11 |
cdr |
MonthCalendar |
|
12 |
icn |
NotifyIcon |
|
13 |
nud |
NumeircUpDown |
|
14 |
pic |
PictureBox |
|
15 |
prg(pgb) |
ProgressBar |
|
16 |
rdo |
RadioButton |
|
17 |
rtx |
RichTextBox |
|
18 |
txt |
TextBox |
|
19 |
tip |
ToolTip |
|
20 |
tvw |
TreeView |
|
21 |
wbs |
WebBrowser |
2.容器控件
|
序号 |
控件类型简写 |
控件类型 |
|
1 |
flp |
FlowLayoutPanel |
|
2 |
grp |
GroupBox |
|
3 |
pnl |
Panel |
|
4 |
spl(spc) |
SplitContainer |
|
5 |
tab |
TabControl |
|
6 |
tlp |
TableLayoutPanel |
3.菜单和工具栏
|
序号 |
控件类型简写 |
控件类型 |
|
1 |
cms |
ContextMenuStrip |
|
2 |
mns |
MenuStrip |
|
3 |
ssr |
StatusStrip |
|
4 |
tsr |
ToolStrip |
|
5 |
tsc |
ToolStripContainer |
4.数据
|
序号 |
控件类型简写 |
控件类型 |
|
1 |
dts |
DataSet |
|
2 |
dgv |
DataGridView |
|
3 |
更多精彩内容其他人还在看
C#使用oledb读取excel表格内容到datatable的方法这篇文章主要介绍了C#使用oledb读取excel表格内容到datatable的方法,涉及C#操作oledb及datatable的相关技巧,需要的朋友可以参考下
收藏 0赞 0分享 C#使用oledb操作excel文件的方法这篇文章主要介绍了C#使用oledb操作excel文件的方法,涉及C#中oledb操作excel的相关技巧,非常具有实用价值,需要的朋友可以参考下
收藏 0赞 0分享 C#使用IHttpModule接口修改http输出的方法这篇文章主要介绍了C#使用IHttpModule接口修改http输出的方法,涉及C#操作IHttpModule接口的相关技巧,非常具有实用价值,需要的朋友可以参考下
收藏 0赞 0分享 C#使用jQuery实现无刷新评论提交的方法这篇文章主要介绍了C#使用jQuery实现无刷新评论提交的方法,涉及C#结合jQuery进行Ajax操作的相关技巧,非常具有实用价值,需要的朋友可以参考下
收藏 0赞 0分享 |