Windows .NET C# MDI and Child Forms

Apr 3 2007 6:20 PM
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.

Answers (1)