Hi,
Sounds as if you need to expose the contained objects as public properties of their container at all levels.
Regards,
Viv
>I am building a small application in VB.Net and need a little help, maybe more than a little help!
>
>I have created some classes, usercontrols, to hold some functionality. What I need to do is reference their methods and properties within my main form but I cannot seem to manage this.
>
>At the moment I have a TreeView usercontrol that holds a TreeView, within this class I build the list of options. I then have a ControlPanel Class which is another usercontrol with a splitter and then the Treeview within it. The ControlPanel usercontrol is then placed onto the MainWindow form. I have succesfully managed to get everything resizing correctly but now need to start adding some real functionality. What I want is to be able to know which Node has been selected from the treeview from the MainWindow form so that I know what action I need to take next.
>
>What would I need to do to be able to do this?
>
>Can anyone point me to a good resource for handling classes in .net?
>
>I am a complete .Net novice so what I'm trying to do may not be the cleverest way to do things if so please feel free to tell me so.
>
>Regards
>
>Jon
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only