Skip to content

Instantly share code, notes, and snippets.

@andyyou
Created July 5, 2012 09:46
Show Gist options
  • Save andyyou/3052671 to your computer and use it in GitHub Desktop.
Save andyyou/3052671 to your computer and use it in GitHub Desktop.
C# Controls abbreviation
btn Button chk CheckBox ckl CheckedListBox
cmb ComboBox dtp DateTimePicker lbl Label
llb LinkLabel lst ListBox lvw ListView
mtx MaskedTextBox cdr MonthCalendar icn NotifyIcon
nud NumeircUpDown pic PictureBox prg ProgressBar
rdo RadioButton rtx RichTextBox txt TextBox
tip ToolTip tvw TreeView wbs WebBrowser
容器
flp FlowLayoutPanel grp GroupBox pnl Panel
spl SplitContainer tab TabControl tlp TableLayoutPanel
選單和工具列
cms ContextMenuStrip
mns MenuStrip
ssr StatusStrip
tsr ToolStrip
tsc ToolStripContainer
資料類型
dts DataSet
dgv DataGridView
bds BindingSource
bdn BindingNavigator
rpv ReportViewer
對話框
cld ColorDialog
fbd FolderBrowserDialog
fnd FontDialog
ofd OpenFileDialog
sfd SaveFileDialog
组件
bgw BackgroundWorker
dre DirectoryEntry
drs DirectorySearcher
err ErrorProvider
evl EventLog
fsw FileSystemWatcher
hlp HelpProvider
img ImageList
msq MessageQueue
pfc PerformanceCounter
prc Process
spt SerialPort
scl ServiceController
tmr Timer
列印
psd PageSetupDialog
prd PrintDialog
pdc PrintDocument
prv PrintPreviewControl
ppd PrintPreviewDialog
水晶報表
crv CrystalReportViewer
rpd ReportDocument
其他
dud DomainUpDown
hsc HScrollBar
prg PropertyGrid
spl Splitter
trb TrackBar
vsc VScrollBar
==============================================
<!--------------A----------------->
AdRotator ar
<!--------------B----------------->
Button btn
<!--------------C----------------->
Calender cal
CheckBox chk
CheckBoxList chklst
Column (DataGridView的) col
ColumnHeader (ListView 的) ch
Combobox cbo
CompareValidator cv
CrystalReportViewer rptvew
<!--------------D----------------->
DataGrid dg
DataGridView dgv
DataList dl
DomainUpDown dud
DropDownList ddl
<!--------------F----------------->
FileUpload ful
Form frm
<!--------------G----------------->
GridView gv
GroupBox grp
<!--------------H----------------->
HiddenField hf
<!--------------I----------------->
Image img
ImageButton imgbtn
ImageList il
<!--------------L----------------->
Label lbl
LinkButton lnkbtn
ListBox lst
ListView lv
<!--------------M----------------->
MenuStrip ms
<!--------------O----------------->
ObjectDataSource ods
<!--------------P----------------->
PagedDataSource pds
Panel pnl
PictureBox pic
<!--------------R----------------->
RadioButton rdo
RadioButtonList rdolst
RangeValidator rv
RegularExpressionValidator rev
Repeater rpt
RequiredFieldValidator rfv
<!--------------S----------------->
StatusLabel slbl
StatusStrip ss
<!--------------T----------------->
TabControl tab
Table tbl
TabPage tp
TextBox txt
Timer tmr
ToolStrip ts
ToolStripButton tsbtn
ToolStripDropDownButton tsddb
ToolStripLabel tslbl
ToolStripMenuItem tsmi
TreeView tv/tvw
<!--------------V----------------->
ValidatorSummary vs
<!--------------W----------------->
WebBrowser
@yichaoliang
Copy link

useful

Copy link

ghost commented Oct 25, 2019

thanks a lot

@duonghaipham
Copy link

thanks so much

@V1CTOR-cloud
Copy link

Totally useful Thx

@kimchan122
Copy link

Thanks!

@TaherMarengoze
Copy link

Very useful

@Yi-TingL
Copy link

Thank you

@romy-m
Copy link

romy-m commented Nov 22, 2021

Thanks

@Aoi-hosizora
Copy link

Great abbreviations, thanks!

@alvaroroco
Copy link

Thanks!

@Tropesso92
Copy link

Thks!!!

@EberleDev
Copy link

<3

@simgonzalez
Copy link

Does anyone knows a plugin that would use those as the default name for my controls ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment