I had a very strong habit of doing that when I started with C# (from my days
with Delphi). I've been trying to "cross over" and start using the
<nameofthe thing>ControlClassName pattern: OkButton, as this is the coding
standard where I work. However, for controls, I'm finding that I like it
better when the typename comes first (as with hungarian notation). Reason:
if you pull up intellisense with this., you see all of the controls on the
form sorted by type. I kind of like that organization.
As it is, I'm sticking to our standard, even though I like hungarian names
for the controls. Because, as Red Foreman once said: "If we didn't have
laws, we'd all still be living in trees, throwing our feces at each other.".
<g>
"Wavemaker" <jabberdabber@BiteMeHotmail.com> wrote in message
news:3b6dnXuC55jLB07dRVn-iQ@comcast.com...[color=blue]
>
> "J.Marsch" wrote:[color=green]
> > Actually, they don't recommend Hungarian notation.
> > On forms, I see alot of things like "OkButton",
> > etc. I thought that there was a doc on this on the
> > msdn site.[/color]
>
> Well, there is this doc:
>
>[/color]
http://msdn.microsoft.com/library/de...onventions.asp[color=blue]
>
> It applies to VB pre .NET, apparently. I've adapted it for my C#
> code. Controls are the only place where I use anything like
> Hungarian notation, and I have found it useful to an extent. For
> example, instead of fileOpenMenuItem, I would use mnuFileOpen.
> However, I do have some doubt about this practice, and I would be
> interested in opinions from other C# programmers.
>
>[/color]