Hi to all,


I m working on VS .net making forms for my project using C# but i m facing a very big problem and that is that i need some controls on my forms to be static as i have to use those controls on other forms as well but as static property for modifier in controls is not there so i have to change the code for those controls from private to public static , removing this. keyword where ever this control is used and some other changes in the code as well accordingly but as soon as i switch to the design mode of form the chages i made in the code rollback again to non static controls from public static to private or public only for example i have a button as:
private System.Windows.Forms.ToolBarButton btnConnect;
as i want this button to be static so i have to change code like
public static System.Windows.Forms.ToolBarButton btnConnect;
and remove this. keyword where ever this button is used
but as soon as i switch to the design mode for adding some more controls or making some changes this control will again become non static as
public System.Windows.Forms.ToolBarButton btnConnect;
and this. is as well added where ever this control is used

as i want nearly all controls of the forms to be static and it is so hard for changing the code again and again after every change in the form. Isn't there any way that the controls remain static and the chages in the form design wont affect this?


I hope i get a quick response....
Thanks