I have a doubt about using treeviews and nodes... I've been using the treeview with Java and C#, and when I worked with them I could easily "attach" some class to each node, and hence defining some custom properties for it (username, pass, address, connected, etc), and then while browsing the tree I was able to retrieve the type of the node, and using some specific functions of it.

How could I easily do this? does anyone have any tip or suggestion for something like this?