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
 
Back
Top