Hi,
I am new to programming and have bought quite a few books on the C# programming and windows forms. The examples in the books, in Visual Studio, and online only seem to provide the same examples.
I am trying to create multiple child forms - which is not a problem using the example code, but i do not know how to access each child form as required. That is, i create Form2 and Form3 from menu clicks, but how do i specifically access Form2 to display data when i select a menu item, and Form3 from another menu item click ?.
I was looking to create a handle to a form in the constructor code for the Main window, and assign it to a NULL, but i think i am doing the wrong thing here, i.e. this is not the correct way to program.
So any help on the correct way to code MDI and child forms so that i can direct text to the relevant child wondow would be of great help. Thanks.
(I am not a programmer by trade, but i am using Visual C# since it provides a more rapid development of windows programs to display math results and analysis)
Thanks again for any help.
Loading
Scott LyslePosted Apr 4, 2007, 10:39 AM
The MDIparent maintains a collection of all of the children forms; you can loop through this collection and operate on any child form or forms you are interested in. Anything public on the child form can be accessed from the child form collection.
If you care to send me a message through the site with your email address, I will send you a few examples that might help you get started.