469,623 Members | 1,534 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

I lose Treeview selection if I change Tabpages selection!

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
Oct 11 '07 #1
3 2435
On Oct 11, 11:30 am, leslie eldrige
<leslieeldr...@discussions.microsoft.comwrote:
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

Oct 11 '07 #2
Hi,les.

"leslie eldrige" wrote in message
news:98**********************************@microsof t.com
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()

Oct 11 '07 #3
SORRRRYYYYYYYY

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

"leslie eldrige" wrote:
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

Oct 11 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by hzgt9b | last post: by
1 post views Thread by jaffar | last post: by
5 posts views Thread by | last post: by
8 posts views Thread by Matt MacDonald | last post: by
1 post views Thread by Guillermo Heizenreder | last post: by
18 posts views Thread by =?Utf-8?B?TGkgV2VuZw==?= | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.