المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Need Sample: MDI with TreeView loaded from database... check TreeView and open coresponding Form.



C# Programming
02-17-2010, 06:30 PM
Hello:

I am a super novice to VS C# 2008.

I would like to find a sample program that can help me with the following:

1) Create a MDI form with children.
2) The panel on the left will hold a TreeView populated from a database.
3) When a TreeView child is clicked, I would like to open the coresponding Form.

Here is the issue. I can do a if/else...but I will have several hundred forms.
I would like to get the name of the node and use it as the name of the form and then just open/show the form.
I know, I have not explained it correctly. Hope someone can help me. Thanks in advance.



Need Sample: MDI with TreeView loaded from database... check TreeView and open coresponding Form.