Naming Controls

  • Thread starter Thread starter Brian Corcoran
  • Start date Start date
B

Brian Corcoran

With dotnet, everyone has said that you should no longer use hungarian notation
to name your objects. So, no more strName or intCount.

Okay, but what about controls on forms. If you have a button that is the
"okay" button, I can't see how naming it "Okay" makes any sense.

Thoughts?
 
For controls I still find it useful to use btoButton or btnButton so that it
is easier to find in dropdown help. However I don't use hungarian for
variables.

-Greg McCallum
 
Just don't use button1, button2, etc.
You'd be surprised that some people do!

-Eric
 

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

Back
Top