控件命名
【参考】控件命名=控件缩写前缀+变量名
private Label lblNote;
private Button btnOk;
private TextBox txtName;
【参考】winform控件缩写
控件名称 | 缩写 |
---|---|
Button | Btn |
CheckBox | Chk |
CheckedListBox | Ckl |
ComboBox | Cmb |
DateTimePicker | Dtp |
Label | Lbl |
LinkLabel | Llb |
ListBox | Lst |
ListView | Lvw |
MaskedTextBox | Mtx |
MonthCalendar | Cdr |
NotifyIcon | Icn |
NumeircUpDown | Nud |
PictureBox | Pic |
ProgressBar | Prg |
RadioButton | Rdo |
RichTextBox | Rtx |
TextBox | Txt |
ToolTip | Tip |
TreeView | Tvw |
WebBrowser | Wbs |
FlowLayoutPanel | Flp |
GroupBox | Grp |
Panel | Pnl |
SplitContainer | Spl |
TabControl | Tab |
TableLayoutPanel | Tlp |
ColorDialog | Cld |
FolderBrowserDialog | Fbd |
FontDialog | Fnd |
OpenFileDialog | Ofd |
SaveFileDialog | Sfd |
ImageList | Img |
PageSetupDialog | Psd |
PrintDialog | Prd |
PrintDocument | Pdc |
PrintPreviewControl | Prv |
PrintPreviewDialog | Ppd |
CrystalReportViewer | Crv |
HScrollBar | Hsc |
PropertyGrid | Prg |
Splitter | Spl |
TrackBar | Trb |
VScrollBar | Vsc |