.Net中控件的命名规则
作者:springsnow 时间:2024-06-05 09:25:15
一、基本数据类型前缀
数据类型 | 数据类型简写 |
---|---|
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 |
来源:https://www.cnblogs.com/springsnow/p/9391868.html
标签:.NET,控件,命名,规范
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python中eval带来的潜在风险代码分析
2023-05-24 03:29:03
Python3.6笔记之将程序运行结果输出到文件的方法
2023-08-02 08:27:44
![](https://img.aspxhome.com/file/2023/9/61739_0s.jpg)
golang gorm的预加载及软删硬删的数据操作示例
2024-04-25 13:18:34
使用pandas实现连续数据的离散化处理方式(分箱操作)
2023-08-28 21:45:51
PHP实现用户认证及管理完全源码
2023-11-19 20:26:19
Python OpenCV超详细讲解读取图像视频和网络摄像头
2023-11-26 05:22:36
![](https://img.aspxhome.com/file/2023/3/105583_0s.png)
django rest framework 实现用户登录认证详解
2023-05-10 10:19:05
![](https://img.aspxhome.com/file/2023/3/99553_0s.png)
Python 玩转图像格式转换操作
2022-03-25 23:14:52
![](https://img.aspxhome.com/file/2023/5/83945_0s.jpg)
Python数据分析之双色球统计两个红和蓝球哪组合比例高的方法
2021-05-14 01:15:57
![](https://img.aspxhome.com/file/2023/7/105267_0s.jpg)
ajax标签导航实例详解教程
2008-02-01 10:54:00
![](https://img.aspxhome.com/file/UploadPic/up/2008020111434016.gif)
土豆网前端概况
2008-01-24 12:06:00
![](https://img.aspxhome.com/file/UploadPic/20081/24/2008124121710861s.jpg)
windows下python 3.9 Numpy scipy和matlabplot的安装教程详解
2021-12-20 13:20:47
![](https://img.aspxhome.com/file/2023/5/117845_0s.png)
python 读写excel文件操作示例【附源码下载】
2023-02-20 09:26:31
python 如何将字典写为json文件
2021-07-22 18:39:39
强大的Perl正则表达式实例详解
2023-08-09 11:12:33
解决pymysql cursor.fetchall() 获取不到数据的问题
2024-01-29 09:00:19
![](https://img.aspxhome.com/file/2023/0/94700_0s.jpg)
javascript实现滚动效果的数字时钟实例
2024-04-29 13:39:50
![](https://img.aspxhome.com/file/2023/9/132599_0s.jpg)
javascript的var与let,const之间的区别详解
2024-05-09 15:06:41
![](https://img.aspxhome.com/file/2023/2/126842_0s.jpg)
在Python中等距取出一个数组其中n个数的实现方式
2023-10-18 10:03:10
![](https://img.aspxhome.com/file/2023/4/86164_0s.jpg)
python实现在控制台输入密码不显示的方法
2023-06-19 22:44:23