control naming conventions

  • Thread starter Thread starter dragonslayer008
  • Start date Start date
D

dragonslayer008

When I drag a control onto a form, visual studio gives it a dummy
name. I'm wondering, what are good naming conventions you use for
controls? I like to indicate the control type: for example,
"submitButton" or "showResultCheckBox". Although I find this
cumbersome sometimes.

Also, I notice that in C#/.NET code, the m_ prefix for member
variables is no longer popular, as it was in MFC. Do people use any
notation to denote member variables in C#/.NET? I don't like to
confuse them with local variables. Maybe it is popular to explicitly
reference "this"?
 
Back
Top