-
C#(99):.NET控件命名规范
一、基本数据类型前缀
数据类型 |
数据类型简写 |
Array |
arr |
Boolean |
bln |
Byte |
byt |
Char |
chr |
DateTime |
dtm |
Decimal |
dec |
Double |
dbl |
Integer |
int |
Long |
lng |
Object |
obj |
Short |
shr |
Single |
sng |
String |
str |
二、ADO.NET对象前缀
控件类型 |
控件类型简写 |
Command |
cmd |
Connection |
conn |
DataAdapter |
da |
DataColumn |
dcol |
DataReader |
dr |
DataRelation |
Drel |
DataRow |
drow |
DataSet |
ds |
DataTable |
tbl |
DataView |
dv |
Parameter |
parm |
三、WinForm Control 命名规范
控件类型 |
控件类型简写 |
BackgroundWorker |
bgw |
BindingNavigator |
bdn |
BindingSource |
bds |
Button |
btn |
CheckBox |
chk |
CheckedListBox |
clst |
ColorDialog |
cdlg |
ComboBox |
cbo |
ContextMenuStrip |
cms |
CrystalReportViewer |
crv |
DataGrid |
dgrd |
DataGridView |
dgv |
DataSet |
dts |
DateTimePicker |
dtp |
DirectoryEntry |
dre |
DirectorySearcher |
drs |
DomainUpDown |
dud |
ErrorProvider |
err |
EventLog |
evl |
FileSystemWatcher |
fsw |
FlowLayoutPanel |
flp |
FolderBrowserDialog |
fbdlg |
FontDialog |
fdlg |
Form |
frm |
GroupBox |
grp |
HelpProvider |
hlp |
HscrollBar |
hsb |
ImageList |
ilst |
Label |
lbl |
LinkLabel |
llbl |
ListBox |
lst |
ListView |
lvw |
MainMenu |
mmnu |
MaskedTextBox |
mtx |
MenuStrip |
ms |
MessageQueue |
msq |
MonthCalendar |
cdr |
NotifyIcon |
icn |
NumeircUpDown |
nud |
OpenFileDialog |
ofdlg |
PageSetupDialog |
psdlg |
Panel |
pnl |
PerformanceCounter |
pfc |
PictureBox |
pic |
PrintDialog |
pdlg |
PrintDocument |
pdc |
PrintPreviewControl |
prv |
PrintPreviewDialog |
ppd |
Process |
prc |
ProgressBar |
pgb |
PropertyGrid |
prg |
RadioButton |
rbtn |
ReportDocument |
rpd |
ReportViewer |
rpv |
RichTextBox |
rtx |
SaveFileDialog |
sfdlg |
SerialPort |
spt |
ServiceController |
scl |
SplitContainer |
spc |
Splitter |
spl |
StatusBar |
stb |
StatusStrip |
ss |
TabControl |
tab |
TableLayoutPanel |
tlp |
TextBox |
txt |
Timer |
tmr |
ToolBar |
tlb |
ToolStrip |
ts |
ToolStripButton |
tsbtn |
ToolStripContainer |
tsc |
ToolStripDropDownButton |
tsddbtn |
ToolStripLabel |
tslbl |
ToolStripMenuItem |
tsmi |
ToolStripSeparator |
tss |
ToolStripSplitButton |
tssbtn |
ToolTip |
tip |
TrackBar |
trb |
TreeView |
tvw |
VscrollBar |
vsb |
WebBrowser |
wbs |
四、WebControl 命名规范
控件类型 |
控件类型简写 |
Adrotator |
adrt |
BulletedList |
blst |
Button |
btn |
Calendar |
cal |
CheckBox |
chk |
CheckBoxList |
chkl |
CompareValidator |
valc |
CustomValidator |
valx |
DataGrid |
dg |
DataList |
dl |
DetailsView |
dtv |
DropDownList |
ddl |
FileUpLoad |
fup |
FormView |
fmv |
GridView |
grv |
HiddenField |
hfld |
HyperLink |
lnk |
Image |
img |
ImageButton |
ibtn |
ImageMap |
imap |
Label |
lbl |
LinkButton |
lbtn |
ListBox |
lst |
Literal |
ltl |
Localize |
loc |
MultiView |
mvw |
Panel |
pnl |
PlaceHolder |
plh |
RadioButton |
rad |
RadioButtonList |
radl |
RangeValidator |
valg |
RegularExpression |
reg |
Repeater |
rpt |
RequiredFieldValidator |
valr |
SubStitution |
subs |
Table |
tbl |
TableCell |
tblc |
TableRow |
tblr |
TextBox |
txt |
ValidationSummary |
vals |
View |
vw |
Wizard |
wiz |
-
相关阅读:
elasticsearch restful api 关于PUT与POST
elasticsearch关于 PUT /index/type/id
Windows性能计数器相关基础(一)
打了断点但VS2010断点无效
使程序以管理员权限运行(C++)
CListCtrl控件使用方法总结 --很详细(一)
AdjustTokenPrivileges(进程权限)
四种方法实现VC枚举系统当前进程
MFC个人笔记--创建属性表,并通过文件操作,保存属性表中用户的选择 的步骤
学习笔记--MFC在滚动条窗口如何使所图的图形不产生偏移
-
原文地址:https://www.cnblogs.com/springsnow/p/9391868.html
Copyright © 2020-2023
润新知