Re: windows treeview problem
Well if you want something to fire the click event of the treenode then selecting it programmatically is not going to fire a click event is it as that only gets fired when it is clicked ;)
You can use the AfterSelect event of the treeview to do this instead as this will work whenever a new node is selected no matter how it was selected.
Oh yeah and set the HideSelection property of the TreeView to false if you still want to be able to see which node is selected when the treeview doesnt have focus :)
EDIT: OK AfterSelect doesnt seem to work either... let me have a play around and get back to you :)
EDIT EDIT: Alright! AfterSelect does work, I was just being stupid and selecting the treenode the wrong way.
I suspect you are just not selecting the node in the correct way either. Can you show more of your code? mainly the bit where this MyNode comes from?