Visual Studio 控件命名规范(很详细)

VS 控件命名规范

Type Prefix Example

Array arr arrShoppingList

Boolean bln blnIsPostBack

Byte byt bytPixelValue

Char chr chrDelimiter

DateTime dtm dtmStartDate

Decimal dec decAverageHeight

Double dbl dblSizeofUniverse

Integer int intRowCounter

Long lng lngBillGatesIncome

Object obj objReturnValue

Short shr shrAverage

Single sng sngMaximum

String str strFirstName

WebControls

Type Prefix Example

AdRotator adrt adrtTopAd

Button btn btnSubmit

Calendar cal calMettingDates

CheckBox chk chkBlue

CheckBoxList chkl chklFavColors

CompareValidator valc valcValidAge

CustomValidator valx valxDBCheck

DataGrid grd dgrdTitles

DataList dlst dlstTitles

DropDownList drop dropCountries

HyperLink lnk lnkDetails

Image img imgAuntBetty

ImageButton ibtn ibtnSubmit

Label lbl lblResults

LinkButton lbtn lbtnSubmit

ListBox lst lstCountries

Panel pnl pnlForm2

PlaceHolder plh plhFormContents

RadioButton rad radFemale

RadioButtonList radl radlGender

RangeValidator valg valgAge

RegularExpression vale valeEmail_Validator

Repeater rpt rptQueryResults

RequiredFieldValidator valr valrFirstName

Table tbl tblCountryCodes

TableCell tblc tblcGermany

TableRow tblr tblrCountry

TextBox txt txtFirstName

ValidationSummary vals valsFormErrors

XML xmlc xmlc ransformResults

ADO.NET

Type Prefix Example

Connection con conNorthwind

Command cmd cmdReturnProducts

Parameter parm parmProductID

DataAdapter dad dadProducts

DataReader dtr dtrProducts

DataSet dst dstNorthWind

DataTable dtbl dtblProduct

DataRow drow drowRow98

DataColumn dcol dcolProductID

DataRelation drel drelMasterDetail

DataView dvw dvwFilteredProducts

Event-Handling Subroutines
The name of an event-handling subroutine will consist of the ID of the control that rasied the event followed by the type of event being handled. For example, a subroutine named btnSubmit_Click handles the Click event of a Button control named btnSubmit.
When a control that raises an event is not assigned an ID, the type of the control is used instead of the ID. For example, the subroutine named Button_Click handles the Click event of a Button control without an ID.
希望大家能够写出风格一致的代码。

http://blog.csdn.net/yanjiaye520/article/details/5350375

时间: 2024-10-12 15:36:34

Visual Studio 控件命名规范(很详细)的相关文章

Visual Studio C#的winform/webform/asp.net控件命名规范

控件命名规范 类型 前缀 示例 AdRotator adrt adrtTopAd Button btn btnSubmit Calendar cal calMettingDates CheckBox chk chkBlue CheckBoxList chkl chklFavColors CompareValidator valc valcValidAge CustomValidator valx valxDBCheck DataGrid dgrd dgrdTitles DataList dlst

Visual C#中的winform/webform/asp.net控件命名规范

                                                                        1.控件命名规范 类型 前缀 示例 AdRotator adrt adrtTopAd Button btn btnSubmit Calendar cal calMettingDates CheckBox chk chkBlue CheckBoxList chkl chklFavColors CompareValidator valc valcValidA

WinForm Control 控件命名规范

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 pi

C#控件命名规范

文档名称: C#控件命名规范 撰写作者: codefly 版本编号: V1.1 一.Data Control 类型 前缀 示例 AccessDataSource ads adsPubs DataList dlst dlstTitles DetailView dvw dvwTitles FormView fvw fvwFonts GridView gvw gvwCity ObjectDataSource ods odsMenus Repeater rpt rptQueryResults Repor

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 Notify

winform控件命名规范对照表

WinForm Control 命名规范 数据类型 数据类型简写 标准命名举例 Label lbl lblMessage LinkLabel llbl llblToday Button btn btnSave TextBox txt txtName MainMenu mmnu mmnuFile CheckBox chk chkStock RadioButton rbtn rbtnSelected GroupBox gbx gbxMain PictureBox pic picImage Panel

VS 控件命名规范

基本数据类型 数据类型 数据类型简写 标准命名举例 Array arr arrShoppingList Boolean                         bln blnIsPostBack Byte                           byt bytPixelValue Char                            chr chrDelimiter DateTime                       dtm dtmStartDate De

VintaSoft扫描仪和数码相机TWAIN控件VintaSoftTwain.NET Library详细介绍

VintaSoftTwain.NET Library 允许控制平台和手持扫描仪,网页和数码相机,以及 .NET 环境中的任何其它 TWAIN 设备的运作. 具体功能: 完全兼容 TWAIN 2.0 规范 这是一个可完全操纵的.NET 库,保证在.NET 框架中实现快速工作. 从扫描仪.网页或者数码相机以及任何其它 TWAIN 设备中获取图片. 数据源列举以及选择. 显示模态或者非模态的数据源用户接口. 控值 Automatic Document Feeder (ADF) 的运作. 设置图片获取参

cocosBuider 控件命名的坑

这几天遇到了各种坑.... 各种控件名字问题.... bool CLevelLayer::onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, const char * pMemberVariableName, cocos2d::CCNode * pNode){ CCLOG("===%s === %d",pMemberVariableName, strcmp(pMemberVariableName, "控件命名"