Hi,
Will there normally only be one instance of MainForm?
I need to hold it as a static variable re this issue I have
Hi,
Will there normally only be one instance of MainForm?
I need to hold it as a static variable re this issue I have
Yes, there would normally only be a single instance, unless you specifically create more instances of it in your application code.
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.