Lost Focus of control
Posted on 2008-10-20
I have a windows form on which i have 2 treeview controls and a Tab Control (with picture boxes in each tab pages)
It looks like this:
TreeView 1| Treeview 2| tab control(Picture Box on each tab page)
One selecting every node in any tree it shows one or multiple pictures related to the item selected in the tree in the tab control.
The problem is On every select of tree node, i am creating the tab pages dynamically and loading pictures on them.
On this My foucs is lost to the tab control and picture box control.
How can i retain my focus in this case?
Thanks very much for all your help.