Since this is (potentially) generated code a comment wouldn't last long. The advantage of having these as local variables is that they don't clutter the class. They are just labels and we don't do anything with it, so they don't need to be member variables. The scope of variables can be set in designer by changing the "Generate Member" property in the properties window of a control.