Well, I am trying to access the MainForm of the application from another form. So, I just decided to pass the MainForm as a parameter in a method of the other form. Thanks, Dan...
G
GoDanno
@GoDanno
Posts
-
Reference Application MainForm or ApplicationContext -
Reference Application MainForm or ApplicationContextIn a WinForms project, the Application.Run method can receive a Form parameter which becomes the main form of the application. According to the documentation, an ApplicationContext is automatically created. My question is, is it possible to get a reference to the MainForm of the application or the ApplicaitonContext that is automatically created? Thanks, Dan...