473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

naming conventions forced by VS.NET?

Hi,

I thouht that I read somewhere that Visual Studio .NET 2005 is able to force
naming conventions for controls etc., but I can't find it anymore :-/ did I
dream this or is this real? :-) If it's real: how can I do this?

Thanks a lot in advance,

Pieter
Nov 20 '06 #1
9 1098
I don't know how you'd even do that. Are you talking about casing, or
default names? You might be mixing this up with Code Analysis. Code
Analysis will check your code against several standard programming practices,
including variable name casings...

"Pieter" wrote:
Hi,

I thouht that I read somewhere that Visual Studio .NET 2005 is able to force
naming conventions for controls etc., but I can't find it anymore :-/ did I
dream this or is this real? :-) If it's real: how can I do this?

Thanks a lot in advance,

Pieter
Nov 20 '06 #2
I am talking about casing, for isntance: every TextBox must have the prefix
"txt" etc...

"William Sullivan" <Wi*************@discussions.microsoft.comwrote in
message news:87**********************************@microsof t.com...
>I don't know how you'd even do that. Are you talking about casing, or
default names? You might be mixing this up with Code Analysis. Code
Analysis will check your code against several standard programming
practices,
including variable name casings...

Nov 21 '06 #3
Pieter wrote:
I thouht that I read somewhere that Visual Studio .NET 2005 is able to force
naming conventions for controls etc., but I can't find it anymore
This is probably part of the really, /really/ expensive version of V.S.

For mere mortals, requisition a baseball bat with which to "encourage"
your Developers.

Regards,
Phill W.
Nov 21 '06 #4
I use a whip :-) But it would be nice if some kind of applicaton could tell
me how many thimes I have to hit them, instead of counting the errors myself
:-)

Especially if I could write an interface for it for my USB-whip, so i don't
have to hit them anymore myselves :-)

"Phill W." <p-.-a-.-w-a-r-d@o-p-e-n-.-a-c-.-u-kwrote in message
news:ej**********@south.jnrs.ja.net...
For mere mortals, requisition a baseball bat with which to "encourage"
your Developers.

Nov 21 '06 #5
There is no enforcement of control or member names in Visual Basic; you can
give them any names you want. The standards you referenced--such as prefixing
TextBox controls with "txt"--are a mixture of Visual Basic tradition and
an older naming system called "Hungarian" (seriously!). They are no longer
recommended for Visual Basic development.

In the online help for Visual Studio, look up "naming guidelines [.NET Framework]"
in the index. There you will find the new recommendations. I also talk about
naming standards in my book _The Visual Basic .NET Style Guide_. I think
you can buy a used copy for about one dollar on Amazon.com.

-----
Tim Patrick - www.timaki.com
Start-to-Finish Visual Basic 2005
I am talking about casing, for isntance: every TextBox must have the
prefix "txt" etc...

"William Sullivan" <Wi*************@discussions.microsoft.comwrote
in message news:87**********************************@microsof t.com...
>I don't know how you'd even do that. Are you talking about casing,
or
default names? You might be mixing this up with Code Analysis. Code
Analysis will check your code against several standard programming
practices,
including variable name casings...

Nov 21 '06 #6
I know the hungarian notation isn't 'a standard'anymore, but in my opinion
it still has the most benefits, so that's why I want it to have it
everywhere :-)
Nov 22 '06 #7
My MZ-Tools add-in (below) has two features that can help:

- Control Default Properties: you can define prefixes for the Name property
of each control and every time you drop a control it gets that prefix.

- Review Control Default Properties: you can find the occurrences of
controls that don't follow your standard and you can prevent the build if
you configure so.

There are many other features and reviews and you can even build your own
custom review with the MZ-Tools SDK.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"Pieter" <pi****************@hotmail.comescribió en el mensaje
news:eB****************@TK2MSFTNGP02.phx.gbl...
Hi,

I thouht that I read somewhere that Visual Studio .NET 2005 is able to
force naming conventions for controls etc., but I can't find it anymore
:-/ did I dream this or is this real? :-) If it's real: how can I do this?

Thanks a lot in advance,

Pieter

Nov 22 '06 #8
Thanks, it looks nice. I didn't yet download the demo, but I sure will next
week.
Just some questions:
- During how many time can I try the demo?
- How exactly can I put my own coding-standards (the prefixes of every type
control) in it? Do you have a sample of it? It would be nice if I could
import them from Excle or something like that? And can this be done with the
demo?

Thansk a lot in advance,

Pieter

"Carlos J. Quintero [VB MVP]" <no****@nospam.comwrote in message
news:u7***************@TK2MSFTNGP06.phx.gbl...
My MZ-Tools add-in (below) has two features that can help:

- Control Default Properties: you can define prefixes for the Name
property of each control and every time you drop a control it gets that
prefix.

- Review Control Default Properties: you can find the occurrences of
controls that don't follow your standard and you can prevent the build if
you configure so.

There are many other features and reviews and you can even build your own
custom review with the MZ-Tools SDK.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

Nov 23 '06 #9
Hi Pieter,

You can use the demo version during 30 days. To use the control prefixes you
do the following:

- Go to the MZ-Tools, Options, Corporate Options window
- Select the Control Default Properties section
- In the first combobox, select the referenced System.Windows.Forms assembly
(you need to have a Windows Forms project open)
- For each Component, select the "Name (prefix)" property and enter a value,
for example "txt" for the TextBox control, etc.

Once you have done that, the features "Prompt Name and Text Properties for
New Control", the "Apply Default Properties", "Review Control Default
Properties", etc. will honor it.

Let me know if you need further assistance when evaluating it.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com


"Pieter" <pi****************@hotmail.comescribió en el mensaje
news:Ox**************@TK2MSFTNGP02.phx.gbl...
Thanks, it looks nice. I didn't yet download the demo, but I sure will
next week.
Just some questions:
- During how many time can I try the demo?
- How exactly can I put my own coding-standards (the prefixes of every
type control) in it? Do you have a sample of it? It would be nice if I
could import them from Excle or something like that? And can this be done
with the demo?

Thansk a lot in advance,

Pieter

Nov 27 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: cmiddlebrook | last post by:
Hi there, I keep finding myself getting inconsistent with naming conventions for things like member variables, class names etc and I just want to find something that suits me and stick to it. I...
1
by: clintonG | last post by:
Does the use of DTD, XML Schema and similar constructs adopt the use of C# naming conventions? If so how do I make the distinction of how to apply C# conventions with XML elements, attributes and...
4
by: Mark Broadbent | last post by:
stupid question time again to most of you experts but this is something that continually bothers me. I am trying to get into the habit of naming variables and controls in an assembly as per...
3
by: clintonG | last post by:
Does the use of DTD, XML Schema and similar constructs adopt the use of C# naming conventions? If so how do I make the distinction of how to apply C# conventions with XML elements, attributes and...
5
by: rastaman | last post by:
Hi all, I know of the existence of Object Naming Conventions for Visual Basic 6. Now I'm reading some books about VB .NET, but the names used for the objects are button1, picturebox1, etc. I...
9
by: kevininstructor | last post by:
Greetings, I am in the process of creating naming conventions for VB.NET controls i.e. CheckBox -> chkShowThisOnStartup ListBoxt -> lstSomeList What I am looking for other developers...
9
by: Pieter | last post by:
Hi, I thouht that I read somewhere that Visual Studio .NET 2005 is able to force naming conventions for controls etc., but I can't find it anymore :-/ did I dream this or is this real? :-) If...
35
by: Smithers | last post by:
Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or...
1
by: Philipp Post | last post by:
Marcello, Not a big surprise as naming conventions have a lot to do with personal prefernces. There are a lot of threads in comp.databases and the other database groups. Just do a search for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.