To get rid of some auto-generated form level fields that point to a control that will never be referenced (for example, labels, panels, etc.), do the following:
As a result a member of the form will not be generated for this control. It saves you 4 bytes per member and more importantly removes "clutter" from IntelliSense and any diagrams you autogenerate.
This is a very slick hint, but when a software has to be localized/translated, one needs to access the labels.
Kay 11/22/2007 10:38:40 AM
Of course, don't set GenerateMember to false if your label should be referenced for any reason. However, in most of the cases Labels can be localized without referencing them from your code - http://samples.gotdotnet.com/quickstart/winforms/doc/WinFormsLocalization.aspx
kostya.ly 11/22/2007 8:52:52 PM