tags:

views:

51

answers:

2

Hi,

Will there normally only be one instance of MainForm?

I need to hold it as a static variable re this issue I have

+1  A: 

Yes, there would normally only be a single instance, unless you specifically create more instances of it in your application code.

Justin Ethier
+1  A: 

Even if you have multiple instances of MainForm, if you declare a variable in the form as static (and not ThreadStatic), there will only be one copy of that variable.

MusiGenesis