MS Naming standard question

D

dan.c.roth

Hi

The only documentation I could find was that they don't use Hungarian
notation any more as such txtName is out...

Maybe a MSFT could shed some light?

Regards,

Daniel Roth
MCSD.NET
 
D

Daniel O'Connell [C# MVP]

Alina said:
Hello

We wish to follow the naming standard from Microsoft, we found the Naming
guideliness at
http://msdn.microsoft.com/library/d...en-us/cpgenref/html/cpconnamingguidelines.asp
but we can't find the standard for the UI controls (which one it is:
NameTextBox or textBoxName or txtName)
Can you indicate us the right link on the MS site?

That document only expresses suggestions for non-private members, not for
private internal variables like controls.

There are several common standards in use, with the txtName style being the
most common I see. I don't think any concensus was ever reached on waht is
best though.
 
C

Carlos J. Quintero [.NET MVP]

Those guidelines are intended for class libraries (not Windows
applications), specially if they are used by other companies (vendors,
etc.). For internal use you can use whatever you like, including Hungarian
notation if you wish.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top