Posted on 2004-04-14
I would like to know the best, most efficient approach to this problem. I have an application in which a user must login. During login, the application checks a user database table for existence and rights. I am going to create a class called User into which I will load all information for that user from the database. I will need this information accessible throughout my MDI application. Other than having to pass the class into each form or creating a new instance of the class in each form, what would be the best approach to making this class basically global??????????