I lose Treeview selection if I change Tabpages selection!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am using TAB control with 2 tab pages. First tab page contains a tree view
and second also a tree view control. If I select any node of first tree view
on the first tab page and then go to the second tab page, then I lose the
tree view selection on the first tree view if I come back to the first tab
page!

I already set the HideSelection property of both tree views to FALSE, but it
doesn't help!

Does someone have an idea?

Thanks a lot.
les
 
Hi,

I am using TAB control with 2 tab pages. First tab page contains a tree view
and second also a tree view control. If I select any node of first tree view
on the first tab page and then go to the second tab page, then I lose the
tree view selection on the first tree view if I come back to the first tab
page!

I already set the HideSelection property of both tree views to FALSE, but it
doesn't help!

Does someone have an idea?

Thanks a lot.
les

Are you sure you lost the selection or has the TreeView just lost
Focus? Try using treeView.Focus() when you return to the first tabpage
and see if it fixes your problem.

Thanks,

Seth Rowe
 
Hi,les.

in message
Hi,

I am using TAB control with 2 tab pages. First tab page contains a tree
view
and second also a tree view control. If I select any node of first tree
view
on the first tab page and then go to the second tab page, then I lose the
tree view selection on the first tree view if I come back to the first tab
page!

You can use below code when the tabpage is shown.

Me.TreeView1.Focus()
 
SORRRRYYYYYYYY

of course I will lose my tree view selection, I already filled my tree view
if I selected the first tab page :) !!!


les
 
Back
Top