Winform 控件命名规范
前言
最近 Winform 项目做得比较多,控件命名规范上常用的能记住,但是有些总要查,写个记录吧。方便以后自己用,大家也可以参考。
标准控件
序号 | 控件类型简写 | 控件类型 |
---|---|---|
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, tb | TextBox |
19 | tip | ToolTip |
20 | tvw | TreeView |
21 | wbs | WebBrowser |
容器控件
序号 | 控件类型简写 | 控件类型 |
---|---|---|
1 | flp | FlowLayoutPanel |
2 | grp | GroupBox |
3 | pnl | Panel |
4 | spl(spc) | SplitContainer |
5 | tab | TabControl |
6 | tlp | TableLayoutPanel |
菜单和工具栏
序号 | 控件类型简写 | 控件类型 |
---|---|---|
1 | cms | ContextMenuStrip |
2 | mns | MenuStrip |
3 | ssr | StatusStrip |
4 | tsr | ToolStrip |
5 | tsc | ToolStripContainer |
数据
序号 | 控件类型简写 | 控件类型 |
---|---|---|
1 | dts | DataSet |
2 | dgv | DataGridView |
3 | bds | BindingSource |
4 | bdn | BindingNavigator |
5 | rpv | ReportViewer |
对话框
序号 | 控件类型简写 | 控件类型 |
---|---|---|
1 | cld | ColorDialog |
2 | fbd | FolderBrowserDialog |
3 | fnd | FontDialog |
4 | ofd | OpenFileDialog |
5 | sfd | SaveFileDialog |
组件
序号 | 控件类型简写 | 控件类型 |
---|---|---|
1 | bgw | BackgroundWorker |
2 | dre | DirectoryEntry |
3 | drs | DirectorySearcher |
4 | err | ErrorProvider |
5 | evl | EventLog |
6 | fsw | FileSystemWatcher |
7 | hlp | HelpProvider |
8 | img | ImageList |
9 | msq | MessageQueue |
10 | pfc | PerformanceCounter |
11 | prc | Process |
12 | spt | SerialPort |
13 | scl | ServiceController |
14 | tmr | Timer |
印刷
序号 | 控件类型简写 | 控件类型 |
---|---|---|
1 | psd | PageSetupDialog |
2 | prd | PrintDialog |
3 | pdc | PrintDocument |
4 | prv | PrintPreviewControl |
5 | ppd | PrintPreviewDialog |
水晶报表
序号 | 控件类型简写 | 控件类型 |
---|---|---|
1 | crv | CrystalReportViewer |
2 | rpd | ReportDocument |
其他
序号 | 控件类型简写 | 控件类型 |
---|---|---|
1 | dud | DomainUpDown |
2 | hsc | HScrollBar |
3 | prg | PropertyGrid |
4 | spl | Splitter |
5 | trb | TrackBar |
6 | vsc | VScrollBar |
Winform 控件命名规范的更多相关文章
- C#中常见的winform控件命名规范
我们知道Button 常常简称为btn,那么Winform中的其它控件呢,这篇文章在C#的winform控件命名规范 的基础上对一些控件的名称的简称进行了整理. 1. 标准控件 NO. 控件类型简写 ...
- C#中常见的winform控件命名规范 转
我们知道Button 常常简称为btn,那么Winform中的其它控件呢,这篇文章在C#的winform控件命名规范 的基础上对一些控件的名称的简称进行了整理. 1. 标准控件 NO. 控件类型简写 ...
- C#的winform控件命名规范
注:这里用红字标记的部分表示有重复出现,括号内为替代表示方案 1.标准控件 序号 控件类型简写 控件类型 1 btn Button 2 chk CheckBox 3 ckl CheckedListBo ...
- winform控件命名规范对照表
WinForm Control 命名规范 数据类型 数据类型简写 标准命名举例 Label lbl lblMessage LinkLabel llbl llblToday Button btn btn ...
- Visual Studio C#的winform/webform/asp.net控件命名规范
控件命名规范 类型 前缀 示例 AdRotator adrt adrtTopAd Button btn btnSubmit Calendar cal calMettingDates CheckBox ...
- Visual C#中的winform/webform/asp.net控件命名规范
1.控件命名规范 类型 前缀 示例 AdRotator ...
- C#控件命名规范
文档名称: C#控件命名规范 撰写作者: codefly 版本编号: V1.1 C#控件命名规范 一.Data Control 类型 前缀 示例 AccessDataSource ads adsPub ...
- Visual Studio 控件命名规范(很详细)
VS 控件命名规范 Type Prefix Example Array arr arrShoppingList Boolean bln blnIsPostBack Byte byt bytPixelV ...
- .NET控件命名规范
一.基本数据类型前缀 数据类型 数据类型简写 Array arr Boolean bln Byte byt Char chr DateTime dtm Decima ...
随机推荐
- C语言 Ubuntu系统 UTF-8 文字处理
关于UTF-8的规则:https://baike.baidu.com/item/UTF-8/481798?fr=aladdin 使用windows系统下的Ubuntu子系统,实现C语言对UTF-8编码 ...
- 测试框架unit之assertion断言使用详解
NUnit是.Net平台的测试框架,广泛用于.Net平台的单元测试和回归测试中,下面我们用示例详细学习一下他的使用方法 任何xUnit工具都使用断言进行条件的判断,NUnit自然也不例外,与其它的xU ...
- HttpURLConnection 中Cookie 使用
方式一: 如果想通过 HttpURLConnection 访问网站,网站返回cookie信息,下次再通过HttpURLConnection访问时,把网站返回 cookie信息再返回给该网站.可以使用下 ...
- C#多线程---委托实现异步
一.概述 通过调用ThreadPool的QueueUserWorkItem方法来来启动工作者线程非常方便,但委托WaitCallback指向的是带有一个参数的无返回值的方法. 如果我们实际操作中需要有 ...
- ArcGIS图层添加字段出现:“定义了过多字段”
首先,我图层数据格式为mdb,也就是Access数据库 Access一个表最大支持255个字段,可是我的才添加第一个字段就出现"定义了过多字段"的错误 打开ArcMap添加字段也是 ...
- 在ubuntu18.04上部署项目时遇到的问题总结
因为在实验室中,有几台空闲的机子,我便选了一台准备做一个本地的服务器,因为买的阿里云学生机和之前用于FQ的机子感觉都不太顺手,阿里的学生机配置稍低,FQ用的服务器延迟太高.开始在centos和ubun ...
- JAVA 之 每日一记 之 算法( 给定一个正整数,返回它在 Excel 表中相对应的列名称。 )
题目: 给定一个正整数,返回它在 Excel 表中相对应的列名称. 例如: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -& ...
- Mybatis-plus<三> MybatisPlus条件构造器
Mybatis-plus<三> MybatisPlus条件构造器 Demo GitHub下载地址:https://github.com/RJvon/Mybatis_plus_demo My ...
- HashMap 为什么线程不安全?
作者:developer http://cnblogs.com/developer_chan/p/10450908.html 我们都知道HashMap是线程不安全的,在多线程环境中不建议使用,但是其线 ...
- QT 4.7.3 交叉编译环境搭建
测试平台 宿主机平台:Ubuntu 12.04.4 LTS 目标机:Easy-ARM IMX283 目标机内核:Linux 2.6.35.3 交叉编译器:arm-linux-gcc 4.4.4 tsl ...