control naming conventions

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"?
 

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

Similar Threads


Top