Naming conventions 
Author Message
 Naming conventions

Are there any good resources for naming conventions in VB.NET available?
What I'm looking for is recommendations for naming controls etc. Take for
instance the Button control. In classic VB the corresponding control was the
CommandButton, so the recommendation was to use the "cmd" prefix all
CommandButton controls (cmdFileOpen, cmdClose, cmdExit etc.). Button
controls would then be named btnXxxxx or something sililar.

Has Microsoft put together any recommendations, or does anyone know of any
other sources?

TIA

--
............................................
Bj?rn Holmgren
Guide Konsult AB
............................................



Mon, 18 Apr 2005 19:46:08 GMT  
 Naming conventions
Thank you!

May I ask what's the source of these prefixes? Is it an official MS
document?

--
............................................
Bj?rn Holmgren
Guide Konsult AB
............................................


Quote:
> Il cervello cattivo di Bj?rn Holmgren produceva il seguente:

> > Are there any good resources for naming conventions in VB.NET available?
> > What I'm looking for is recommendations for naming controls etc. Take
for
> > instance the Button control. In classic VB the corresponding control was
the
> > CommandButton, so the recommendation was to use the "cmd" prefix all
> > CommandButton controls (cmdFileOpen, cmdClose, cmdExit etc.). Button
> > controls would then be named btnXxxxx or something sililar.

> Here you go :)

> .net Naming Conventions
> =======================

> Label           lbl
> LinkLabel       llb
> Button          btn
> TextBox         txt
> Menu            mnu
> CheckBox        chk
> RadioButton     rad
> GroupBox        grp
> PictureBox      img
> Panel           pnl
> DataGrid        dgr
> ListBox         lst
> CheckedListBox  clb
> ComboBox        cbo
> ListView        lvw
> Treeview        tvw
> DateTimePicker  dtp
> MonthCalendar   cal
> Hor.Scrollbar   hsb
> Vert.Scrollbar  vsb
> Timer           clk
> Splitter        spl
> DomainUpDown    dud
> NumericUpDown   nud
> TrackBar        trb
> RichTextBox     rtb
> ImageList       iml
> HelpProvider    hlp
> ToolTip         tip
> ContextMenu     cmn
> ToolBar         tbr
> StatusBar       stb
> NotifyIcon      nic
> OpenFileDialog  ofd
> SaveFileDialog  sfd
> FontDialog      fnt
> ColorDialog     col
> ErrorProvider   err
> TabControl      tab
> TabPage         tbp

> --
> Tenchi (fr Emails 'spam.be.gone' entfernen)

> Mein VB.net Download-Manager (Version 1.23.2000.0)
> Homepage: http://mitglied.lycos.de/downloadwunder/
> Mailing list: http://de.groups.yahoo.com/group/dw-net/



Mon, 18 Apr 2005 21:56:47 GMT  
 Naming conventions
Il cervello cattivo di Bj?rn Holmgren produceva il seguente:

Quote:

> Are there any good resources for naming conventions in VB.NET available?
> What I'm looking for is recommendations for naming controls etc. Take for
> instance the Button control. In classic VB the corresponding control was the
> CommandButton, so the recommendation was to use the "cmd" prefix all
> CommandButton controls (cmdFileOpen, cmdClose, cmdExit etc.). Button
> controls would then be named btnXxxxx or something sililar.

Here you go :)

.net Naming Conventions
=======================

Label           lbl
LinkLabel       llb
Button          btn
TextBox         txt
Menu            mnu
CheckBox        chk
RadioButton     rad
GroupBox        grp
PictureBox      img
Panel           pnl
DataGrid        dgr
ListBox         lst
CheckedListBox  clb
ComboBox        cbo
ListView        lvw
Treeview        tvw
DateTimePicker  dtp
MonthCalendar   cal
Hor.Scrollbar   hsb
Vert.Scrollbar  vsb
Timer           clk
Splitter        spl
DomainUpDown    dud
NumericUpDown   nud
TrackBar        trb
RichTextBox     rtb
ImageList       iml
HelpProvider    hlp
ToolTip         tip
ContextMenu     cmn
ToolBar         tbr
StatusBar       stb
NotifyIcon      nic
OpenFileDialog  ofd
SaveFileDialog  sfd
FontDialog      fnt
ColorDialog     col
ErrorProvider   err
TabControl      tab
TabPage         tbp

--
Tenchi (fr Emails 'spam.be.gone' entfernen)

Mein VB.net Download-Manager (Version 1.23.2000.0)
Homepage: http://mitglied.lycos.de/downloadwunder/
Mailing list: http://de.groups.yahoo.com/group/dw-net/



Mon, 18 Apr 2005 21:48:03 GMT  
 Naming conventions

 schrieb

Quote:
> Are there any good resources for naming conventions in VB.NET
> available? What I'm looking for is recommendations for naming
> controls etc. Take for instance the Button control. In classic
> VB the corresponding control was the CommandButton, so the
> recommendation was to use the "cmd" prefix all CommandButton
> controls (cmdFileOpen, cmdClose, cmdExit etc.). Button controls
> would then be named btnXxxxx or something sililar.

> Has Microsoft put together any recommendations, or does anyone
> know of any other sources?

ms-help://MS.VSCC/MS.MSDNVS/vbcn7/html/vbconProgrammingGuidelinesOverview.ht
m

ms-help://MS.VSCC/MS.MSDNVS/cpgenref/html/cpconnamingguidelines.htm

Armin



Mon, 18 Apr 2005 22:35:42 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Indexes - Primary key naming conventions

2. Universal Naming Convention.....

3. Naming Conventions?

4. Naming Conventions?

5. Naming Conventions (pascal, camel, etc)

6. Naming Conventions -- Opinions please...

7. New Naming Convention

8. Naming conventions

9. Standard Naming Conventions

10. Menu Naming Conventions

11. Naming Conventions: Avoiding Conflict

12. Naming Conventions

 

 
Powered by phpBB® Forum Software