C# 控制項縮寫大全+命名規範+示例

如有轉載,請註明出處:http://www.cnblogs.com/flydoos/archive/2011/08/29/2158903.htmlC# 控制項縮寫大全+命名規範+示例寫程序的時候突然忘了C#的控制項命名的大小寫的規範,去網上找了些資料,拷過來看看。Standard Control(標準控制項)類 型前 綴示 例AdrotatoradrtadrtTopAdBulletedListblstblstCityButtonbtnbtnSubmitCalendarcalcalMettingDatesCheckBoxchkchkBlueCheckBoxListchklchklFavColorsDropDownListdropdropCountriesFileUpLoadfupfupImageHiddenFieldhfldhfldNameHyperLinkhlkhlkDetailsImageimgimgAuntBettyImageButtonibtnibtnSubmitImageMapimapimapSiteLabellbllblResultsLinkButtonlbtnlbtnSubmitListBoxlstlstCountriesLiteralltlltlTitleLocalizeloclocChinaMultiViewmvwmvwForm1PanelpnlpnlForm2PlaceHolderplhplhFormContentsRadioButtonradradFemaleRadioButtonListradlradlGenderSubStitutionsubssubsTimeTabletbltblCountryCodesTextBoxtxttxtFirstNameViewvwvwCityWizardwizwizRegisterXmlxmlxmlBooksData Control(數據控制項)類 型前 綴示 例AccessDataSourceadsadsPubsDataListdlstdlstTitlesDetailViewdvwdvwTitlesFormViewfvwfvwFontsGridViewgvwgvwCityObjectDataSourceodsodsMenusRepeaterrptrptQueryResultsReportViewerrvwrvwRecordSiteMapDataSourcesmdssmdsSiteSqlDataSourcesdssdsBooksXmlDataSourcexdsxdsTitlesValidation Control(驗證控制項)類 型前 綴示 例CompareValidatorvalcvalcValidAgeCustomValidatorvalxvalxDBCheckRangeValidatorvalgvalgAgeRegularExpressionValidatorvalevaleEmailRequiredFieldValidatorvalrvalrFirstNameValidationSummaryvalsvalsFormErrorsNavigation Control(導航控制項)類 型前 綴示 例MenumnumnuUser1SiteMapPathsmpsmpSite1TreeViewtrvwtrvwMenuLogin Control(登錄控制項)類 型前 綴示 例ChangePasswordcpwdcpwdUser1CreateUserWizardcuwcuwLoginLoginloglogCenterLoginNamelognlognUserLoginStatuslogslogsUserLoginViewlogvlogvUserPasswordRecoverypwdrpwdrUserWebParts Control(Web控制項)類 型前 綴示 例AppearanceEditorPartpaedpaedPart1BehaviorEditorPartpbedpbedPart2CatalogZonezcazcatCityConnectionsZonezconzconDataBaseDeclarativeCatalogPartpdcapdcaPart1EditorZonezedzedNewsImportCatalogPartpicapicaPartLayoutEditorPartpledpledNewsPageCatalogPartppcappcaMailPropertyGridEditorPartppgeppgeServerProxyWebPartManagermpwpmpwpWebWebPartManagermwpmwpSite1WebPartZonezwpzwpSite2Other Control(其他控制項)Control type prefix ExampleAnimated button ani aniMailBoxButton btnCheck box chk chkReadOnlyColorDialog clrdlgCombo box, drop-down list box cbo cboEnglishCommunications com comFaxContextMenu ctxmnuControl (used within procedures when the specific type is unknown) ctr ctrCurrentCrystalReportViewer crvwData dat datBiblioData grid dgd dgdTitlesData list dbl dblPublisherData repeater drp drpLocationData-bound combo box dbcbo dbcboLanguageData-bound grid dbgrd dbgrdQueryResultData-bound list box dblst dblstJobTypeDatetime picker dtp dtpPublishedDirectory list box dir dirSourceDomainUpDown dupdDrive list box drv drvTargetErrorProvider errFile list box fil filSourceFlat scroll bar fsb fsbMoveFontDialog fntdlgForm frm frmEntryFrame fra fraLanguageGauge gau gauStatusGraph gra graRevenueGrid grd grdPricesGroupBox grpHelpProvider hlpHierarchical flexgrid flex flexOrdersHScroll bar hsb hsbVolumeImage img imgIconImage combo imgcbo imgcboProductImageList ils ilsAllIconsLabel lbl lblHelpMessageLine lin linVerticalLinkLabel lnkListbox lst lstPolicyCodesListView lvw lvwHeadingsMAPI message mpm mpmSentMessageMAPI session mps mpsSessionMCI mci mciVideoMenu mnu mnuFileOpenMonth view mvw mvwPeriodMonthCalendar mclMS Chart ch chSalesbyRegionMS Flex grid msg msgClientsMS Tab mst mstFirstNotifyIcon ntiNumericUpDown nupdOLE container ole oleWorksheetOpenFileDialog ofdlgPageSetUpDialog psdlgPicture box pic picVGAPicture clip clp clpToolbarPrintDocument prndocPrintPreviewControl ppctlPrintPreviewDialog ppdlgProgressBar prg prgLoadFileRadioButton rbtnRemote Data rd rdTitlesRichTextBox rtf rtfReportSaveFileDialog sfdlgShape shp shpCircleSlider sld sldScaleSpin spn spnPagesSplitter sptStatusBar sta staDateTimeSysInfo sys sysMonitorTabContrl tabTabStrip tab tabOptionsText box txt txtLastNameTimer tmr tmrAlarmToolbar tlb tlbActionsTrackBar trbTreeView tre treOrganizationUpDown upd updDirectionVScroll bar vsb vsbRate2011-09-09 新增,補充一些沒有寫到的控制項標準控制項1btnButton2chkCheckBox3cklCheckedListBox4cmbComboBox5dtpDateTimePicker6lblLabel7llbLinkLabel8lstListBox9lvwListView10mtxMaskedTextBox11cdrMonthCalendar12icnNotifyIcon13nudNumeircUpDown14picPictureBox15prgProgressBar16rdoRadioButton17rtxRichTextBox18txtTextBox19tipToolTip20tvwTreeView21wbsWebBrowser容器控制項1flpFlowLayoutPanel2grpGroupBox3pnlPanel4splSplitContainer5tabTabControl6tlpTableLayoutPanel菜單和工具欄1cmsContextMenuStrip2mnsMenuStrip3ssrStatusStrip4tsrToolStrip5tscToolStripContainer數據1dtsDataSet2dgvDataGridView3bdsBindingSource4bdnBindingNavigator5rpvReportViewer對話框1cldColorDialog2fbdFolderBrowserDialog3fndFontDialog4ofdOpenFileDialog5sfdSaveFileDialog組件1bgwBackgroundWorker2dreDirectoryEntry3drsDirectorySearcher4errErrorProvider5evlEventLog6fswFileSystemWatcher7hlpHelpProvider8imgImageList9msqMessageQueue10pfcPerformanceCounter11prcProcess12sptSerialPort13sclServiceController14tmrTimer印刷1psdPageSetupDialog2prdPrintDialog3pdcPrintDocument4prvPrintPreviewControl5ppdPrintPreviewDialog水晶報表1crvCrystalReportViewer2rpdReportDocument其他1dudDomainUpDown2hscHScrollBar3prgPropertyGrid4splSplitter5trbTrackBar6vscVScrollBar==============================================<!--------------A----------------->AdRotatorar<!--------------B----------------->Buttonbtn<!--------------C----------------->CalendercalCheckBoxchkCheckBoxListchklstColumn(DataGridView的)colColumnHeader(ListView的)chComboboxcboCompareValidatorcvCrystalReportViewerrptvew<!--------------D----------------->DataGriddgDataGridViewdgvDataListdlDomainUpDowndudDropDownListddl<!--------------F----------------->FileUploadfulFormfrm<!--------------G----------------->GridViewgvGroupBoxgrp<!--------------H----------------->HiddenFieldhf<!--------------I----------------->ImageimgImageButtonimgbtnImageListil<!--------------L----------------->LabellblLinkButtonlnkbtnListBoxlstListViewlv<!--------------M----------------->MenuStripms<!--------------O----------------->ObjectDataSourceods<!--------------P----------------->PagedDataSourcepdsPanelpnlPictureBoxpic<!--------------R----------------->RadioButtonrdoRadioButtonListrdolstRangeValidatorrvRegularExpressionValidatorrevRepeaterrptRequiredFieldValidatorrfv<!--------------S----------------->StatusLabelslblStatusStripss<!--------------T----------------->TabControltabTabletblTabPagetpTextBoxtxtTimertmrToolStriptsToolStripButtontsbtnToolStripDropDownButtontsddbToolStripLabeltslblToolStripMenuItemtsmiTreeViewtv/tvw<!--------------V----------------->ValidatorSummaryvs<!--------------W----------------->WebBrowser
推薦閱讀:

吉之島(JUSCO)為什麼要更名為永旺(AEON)呢?
11.屬狗的人命名10原則
婦科腫瘤病理的分類及命名(一)
【趙雨田】改名字到底能不能改變運氣?
年號的起源和命名

TAG:控制 | 命名 | 規範 | 命名規範 | 控制項 | 縮寫 | 示例 |