Set focus to another control after TreeView click

Posted by Chintan Shah on Stack Overflow See other posts from Stack Overflow or by Chintan Shah
Published on 2009-09-04T12:50:23Z Indexed on 2010/05/27 20:01 UTC
Read the original article Hit count: 252

Filed under:
|
|
|

I have a TreeView control in a Windows application. I am opening another window from the TreeView click (Single Click) event (in tabbed environment, so all windows will appear as a tab in Visual Studio). I want to set focus to one control of the new window.

The problem is that, I am able to set the focus on the double click event of the TreeView. But same doesn't seem to be working with the TreeView single-click event.

Any workarounds?

© Stack Overflow or respective owner

Related posts about winforms

Related posts about treeview