I have a TreeView with a list of URL's in it, and beside this TreeView, I have a WebBrowser1.
I'm trying to get it so that, when I click a link in the TreeView, focus is passed over to the WebBrowser so that with out any additional mouse clicks, I can start to scroll the newly loaded webpage.
I cannot seem to get this to work, no matter where in the code I add WebBrowser1.Focus()
I've tried adding this code in the following locations:
- WebBrowser1_DocumentCompleted
- WebBrowser1_Navigating
- TreeView_MouseUp
- TreeView_Click
- TreeView_AfterSelect
None of these seem to hand over focus to the WebBrowser the way I had intended, I still have to click in the WebBrowser to gain access to the scroll