I have translated some code from C# to VB.net for the purpose of getting Folder Browser functionality. The link to the code is here…..
http://www.codeproject.com/KB/aspnet/DirectoryBrowsing.aspx
My issue is that I have not been able to correcly translate these two lines of code to VB.net.
TreeView1.TreeNodeExpanded +=new TreeNodeEventHandler(TreeView1_TreeNodeExpanded);
TreeView1.SelectedNodeChanged += new EventHandler(TreeView1_SelectedNodeChanged);
Every translator I have used has simply dropped the semicolon from the end of each line. But the editor still does not like them.
I could some help with this as it seems this effects the refresh of the selected folder in the tree view control.

I don’t get to see the C drive folder unless I type the path in the text box, and the folder will still not expand.
thank you,
Use this:
Edit:
A different way to do this would be to apply it at the method level:
You should run this in debug to find out what exactly is going on. I find a lot of times when events of this nature are run in asp.net, you have a conflicting event that “resets” the controls you are attempting to change.