Hi fellows,
my MDI application opens it's main container form with the regular command "Application.Run(new MainWindow());" (extendet form class) and I would like to access some public function of that form from somewhere else.
Problem: I can not get to the MainWindow object though; there seems to be a reference MainWindow.ActiveForm but that is only a form object and non the extendet MainWindow object so I can not find my own public function there. Also this function can not be static since I am modifying some (this.)menu entries with it...
What am I missing here? How do I get the MainWindow object reference?
my MDI application opens it's main container form with the regular command "Application.Run(new MainWindow());" (extendet form class) and I would like to access some public function of that form from somewhere else.
Problem: I can not get to the MainWindow object though; there seems to be a reference MainWindow.ActiveForm but that is only a form object and non the extendet MainWindow object so I can not find my own public function there. Also this function can not be static since I am modifying some (this.)menu entries with it...
What am I missing here? How do I get the MainWindow object reference?