I lose Treeview selection if I change Tabpages selection!

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
 
R

rowe_newsgroups

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
 
Y

yuichiro ochifuji

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()
 
G

Guest

SORRRRYYYYYYYY

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


les
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top