I’m looking for a reference that tells you the proper way to name form elements in Visual Basic.
EX:
btnGo
frmMain
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See Visual Basic Naming Conventions on MSDN.
As far as Hungarian Notation, as in your examples, this is discouraged. The type of the object doesn’t need to be reflected in the variable name. It is better to give your variables good descriptive names for what they represent.
So, instead of
btnGo, call itGoToPage. Instead offrmMain, call itCustomerDetails. Use a descriptive name for the function of the control.