1 form, contains two seperate controls
Hey all, I need some guidance. I'm trying to simulate an environment where you have two user created controls place on a form. A treeview control on the left, like in windows explorer [old trick] and a custom control to handle the edit of item values as selected from the treeview control on the left.
To put it in simple terms I have a treeview on the left and a custom control on the right. The user clicks on a node item and the custom control on the left gets populated with the relevant information surrounding the selection. Now lets say for example the treeview gets populated with usernames and the user selects, Michael Jackson, should the custom control be populated with Michael Jackson's name [Michael, textbox1], [Jackson, textbox2], [TelephoneNumber, textbox3], etc. I have a single form that acts as a container for these two controls but all events, as per control are controlled by that control.
I can, retrieve the information as per selection from the treeview using the AfterSelect-Event's [e] argument: e.Node.Tag and successfully pass the value to the custom user control, but I cannot add the required values into the textboxes. I would like to know why I cannot do this and if it possible how to get around this scenario.
|