I have a control that I want to use in several files.
I have therefore set it up as:
public static System.Windows.Forms.Label label1;
All references to this in my main application I have changed from "this.label1" to "label1". In the other classes that I want to use this in, I inherit the main application and use "label1".
This all works.
However Visual Studio (.Net 2003 C#) keeps on automatically (every now and then) changing this back to the defaults:
public System.Windows.Forms.Label label1; // NO STATIC
And it changes all "label1" to "this.label1"
Has anyone experienced this? It's very annoying!
Hope you can help.