Access object from more than one form
Posted on 2011-03-23
I have an object that I need to access from two forms.
On frmLogin I need to open the connection and validate the user.
On frmmain i will need to work with the methods and events of CmiServer
public static CmiServer CmiServer
if (_cmiServer == null)
_cmiServer = new CmiServer();
Are there other/better ways to do this?