C#的winform控件命名规范


本文详细讲述了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

bds

« 
» 

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3