Hi all,
I have a treeview in a MDI container form which is going to act as a menu for
my windows application. When someone clicks on a node in the treeview it will
open a new form.
I know I could write an exhaustive case statement that handled each node
individually but I would to do this with as minimal code as possible. The
first thing I was going to do was create a custom treeview control and add a
property for the form name. Therefore when I click on a node I will have the
form I want to open.
But I need to create an instance of this form before I show it. So is it
possible to do this dynamically such that I could use the same chunk code to
instaniate all possible forms that are in the treeview and then show them?
regards,
Mac
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200507/1