Hello,
What is the best and recommended practice regarding capitalization for naming controls in, for example, WinForms?
StyleCop says that instances of classes should start with a lower case letter. I respect this convention in my code.
In previous languages that I have used, for example VB6, I have been used to name my UI controls dropped on the form starting with an upper case character, like ZipCodeTextBox.
But a control dropped on a form actually is little more than an instance of a class, so it would make sense for the StyleCop rule to apply, so, zipCodeTextBox. Most of the naming conventions document do not go further and do not specifically cover the UI controls.
I have seen code using the two naming conventions in various projects, books, and blogs posts, so I'm curious what is the generally recommended practice on this and why?
Thanks.