C#里边的控件缩写大全(比较规范)

本文提供了一张全面的数据类型及控件速查表,包括标准控件、容器控件、菜单和工具栏等,涵盖了从基本数据类型到复杂控件的详细缩写和命名规范。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

基本类型:数据类型缩写 

01 string str          02 int i              03 char chr 

04 sbyte sb              05 byte bt          06 uint ui 

07 long l              08 ulong ul         09 float f 

10 double d                11 bool b               12 decimal dec  

标准控件

01 btn Button                02 chk CheckBox           03 ckl CheckedListBox

04 cmb ComboBox        05 dtp DateTimePicker     06 lbl Label

07 llb LinkLabel        08 lstListBox        09 lvwListView

10 mtx MaskedTextBox      11 cdr MonthCalendar     12 icn NotifyIcon

13 nud NumeircUpDown      14 pic PictureBox       15 prg ProgressBar

16 rdo RadioButton      17 rtx RichTextBox   18 txtTextBox

19 tip ToolTip            20 tvw TreeView       21 wbs WebBrowser

容器控件

01 flp FlowLayoutPanel 02 grpGroupBox           03 pnl Panel

04 spl SplitContainer    05 tab TabControl          06 tlp TableLayoutPanel

菜单和工具栏

01 cms ContextMenuStrip        02 mns MenuStrip        03 ssr StatusStrip

04 tsr ToolStrip           05 tsc ToolStripContainer

数据

01 dts DataSet                 02 dgv DataGridView     03 bds BindingSource

04 bdn BindingNavigator         05 rpv ReportViewer

对话框

01 cld ColorDialog               02 fbd FolderBrowserDialog      03 fnd FontDialog

04 ofd OpenFileDialog        05 sfd SaveFileDialog

组件

01 bgw BackgroundWorker     02 dre DirectoryEntry     03 drs DirectorySearcher

04 err ErrorProvider         05 evl EventLog             06 fsw FileSystemWatcher

07 hlp HelpProvider             08 img ImageList             09 msq MessageQueue

10 pfc PerformanceCounter     11 prc Process             12 spt SerialPort

13 scl ServiceController     14 tmr Timer

印刷

01 psd PageSetupDialog         02 prd PrintDialog         03 pdc PrintDocument

04 prv PrintPreviewControl 05 ppd PrintPreviewDialog

水晶报表

01 crv CrystalReportViewer         02 rpd ReportDocument

其他

01 dud DomainUpDown         02 hsc HScrollBar         03 prg PropertyGrid

04 spl Splitter             05 trb TrackBar             06 vsc VScrollBar

<!--------------A----------------->

01 AdRotator ar

<!--------------B----------------->

01 Button btn

<!--------------C----------------->

01Calender cal                02CheckBox chk              03CheckBoxList chklst

04 Column col                     05 ColumnHeader ch         06 Combobox cbo

07CompareValidator cv     08CrystalReportViewer rptvew

<!--------------D----------------->

01 DataGrid dg                    02 DataGridView dgv        03 DataList dl

04 DomainUpDown dud            06 DropDownList ddl

<!--------------F----------------->

01 FileUpload ful                02 Form frm

<!--------------G----------------->

01 GridView gv                    02 GroupBox grp

<!--------------H----------------->

01 HiddenField hf

<!--------------I----------------->

01 Image img                02 ImageButton imgbtn            03 ImageList il

<!--------------L----------------->

01 Label lbl                02 LinkButton lnkbtn                03 ListBox lst

04 ListView lv

<!--------------M----------------->

01 MenuStrip ms

<!--------------O----------------->

01 ObjectDataSource ods

<!--------------P----------------->

01 PagedDataSourcepds        02 Panel pnl                03 PictureBox pic

<!--------------R----------------->

01 RadioButton rdo        02 RadioButtonList rdolst    03 RangeValidator rv

04RegularExpressionValidator rev         05Repeater rpt

06RequiredFieldValidator rfv

<!--------------S----------------->

01 StatusLabel slbl            02 StatusStrip ss

<!--------------T----------------->

01 TabControl tab                02 Table tbl            03 TabPage tp

04 TextBox txt                 05 Timer tmr            06 ToolStrip ts

07 ToolStripButtontsbtn    08 ToolStripDropDownButton tsddb

09 ToolStripLabeltslbl    10 ToolStripMenuItem tsmi

11 TreeView tv/tvw

<!--------------V----------------->

01 ValidatorSummary vs

<!--------------W----------------->

01 WebBrowser wb

标准控件缩写规范

类 型

前 缀

示 例

Adrotator

adrt

adrtTopAd

BulletedList

blst

blstCity

Button

btn

btnSubmit

Calendar

cal

calMettingDates

CheckBox

chk

chkBlue

CheckBoxList

chkl

chklFavColors

DropDownList

drop

dropCountries

FileUpLoad

fup

fupImage

HiddenField

hfld

hfldName

HyperLink

hlk

hlkDetails

Image

img

imgAuntBetty

ImageButton

ibtn

ibtnSubmit

ImageMap

imap

imapSite

Label

lbl

lblResults

LinkButton

lbtn

lbtnSubmit

ListBox

lst

lstCountries

Literal

ltl

ltlTitle

Localize

loc

locChina

MultiView

mvw

mvwForm1

Panel

pnl

pnlForm2

PlaceHolder

plh

plhFormContents

RadioButton

rad

radFemale

RadioButtonList

radl

radlGender

SubStitution

subs

subsTime

Table

tbl

tblCountryCodes

TextBox

txt

txtFirstName

View

vw

vwCity

Wizard

wiz

wizRegister

Xml

xml

xmlBooks

DataControl

类 型

前 缀

示 例

AccessDataSource

ads

adsPubs

DataList

dlst

dlstTitles

DetailView

dvw

dvwTitles

FormView

fvw

fvwFonts

GridView

gvw

gvwCity

ObjectDataSource

ods

odsMenus

Repeater

rpt

rptQueryResults

ReportViewer

rvw

rvwRecord

SiteMapDataSource

smds

smdsSite

SqlDataSource

sds

sdsBooks

XmlDataSource

xds

xdsTitles

ValidationControl

类 型

前 缀

示 例

CompareValidator

valc

valcValidAge

CustomValidator

valx

valxDBCheck

RangeValidator

valg

valgAge

RegularExpressionValidator

vale

valeEmail

RequiredFieldValidator

valr

valrFirstName

ValidationSummary

vals

valsFormErrors

NavigationControl

类 型

前 缀

示 例

Menu

mnu

mnuUser1

SiteMapPath

smp

smpSite1

TreeView

trvw

trvwMenu

LoginControl

 

前 缀

示 例

ChangePassword

cpwd

cpwdUser1

CreateUserWizard

cuw

cuwLogin

Login

log

logCenter

LoginName

logn

lognUser

LoginStatus

logs

logsUser

LoginView

logv

logvUser

PasswordRecovery

pwdr

pwdrUser

WebPartsControl

类 型

前 缀

示 例

AppearanceEditorPart

paed

paedPart1

BehaviorEditorPart

pbed

pbedPart2

CatalogZone

zca

zcatCity

ConnectionsZone

zcon

zconDataBase

DeclarativeCatalogPart

pdca

pdcaPart1

EditorZone

zed

zedNews

ImportCatalogPart

pica

picaPart

LayoutEditorPart

pled

pledNews

PageCatalogPart

ppca

ppcaMail

PropertyGridEditorPart

ppge

ppgeServer

ProxyWebPartManager

mpwp

mpwpWeb

WebPartManager

mwp

mwpSite1

WebPartZone

zwp

zwpSite2

Aweb控件 控件名缩写 

01 AdRotatorart          02 Buttonbtn         03 Calendar cd 

04 CheckBoxchk           05 CheckBoxListchkl    06 CompareValidator cpv

07 CustomValidatorctv    08 DataGrid dg          09 DataList dl 

10 DropDownListddl      11 HyperLink hl      12 Image img 

13 ImageButtonIbtn      14 Label lbl          15 ListBox lst 

16 Panel pl                  17 PlaceHolder ph   18 RadioButton rb 

19 RadioButtonListrbl                 20RangeValidator rv

21RegularExpressionValidator rev  22 Repeater rp 

23RequiredFieldValidator rfv

23 Table tb              24    TableCell tc              25    TableRow tr

26 TextBoxtxt          27    ValidationSummary vs        28 XML XML  

B html控件 控件名缩写 

01HtmlAnchor hah                         02 HtmlButton hbtn

03HtmlForm hform                           04 HtmlGenericControl hgc 

05 HtmlImage himg                          06 HtmlInputButton(按钮) htxt 

07 HtmlInputButton(重置) hrbtn      08HtmlInputButton(提交) hcbtn 

09HtmlInputCheckBox hick             10 HtmlInputFile hifile 

11HtmlInputHidden hihidden          12HtmlInputImage hiimg 

13 HtmlInputRadioButton hirb          14 HtmlInputText(密码) hpwd 

15 HtmlInputText(文本)hitxt      16 HtmlSelect hslt 

17HtmlTable htab                         18 HtmlTableCell htc 

19HtmlTableRow htr                     20 HtmlTextArea htxta  

C ADO.NET控件 命名规范 类型前缀示例

01 Connection conconNorthwind       02 Command cmdcmdReturnProducts 

03 Parameter parmparmProductID      04 DataAdapterdad dadProducts 

05 DataReader dtrdtrProducts          06 DataSet dstdstNorthWind 

07 DataTable dtbldtblProduct        08 DataRow drowdrowRow98 

09 DataColumn dcoldcolProductID     10 DataRelationdrel drelMasterDetail 

11 DataView dvwdvwFilteredProducts


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值