Hi All,
I've got an application consisting of several forms. I need to close forms from within other forms. I also need to access information on some forms from other forms. What's the best way to do this?
I thought of declaring a public object variable for each form at the startup of the application (and open the forms by using the show and showdialog methods of the declared objects) so that I can access al forms from all other forms simply by referring to the de declared objects.
However I'm a bit worried about the memory use. Would the approach described above work well when I have let's say 5-8 forms? Or is there a better way to do access forms from within code that's behind other forms?
I've got an application consisting of several forms. I need to close forms from within other forms. I also need to access information on some forms from other forms. What's the best way to do this?
I thought of declaring a public object variable for each form at the startup of the application (and open the forms by using the show and showdialog methods of the declared objects) so that I can access al forms from all other forms simply by referring to the de declared objects.
However I'm a bit worried about the memory use. Would the approach described above work well when I have let's say 5-8 forms? Or is there a better way to do access forms from within code that's behind other forms?