473,710 Members | 2,647 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2558
On Oct 11, 11:30 am, leslie eldrige
<leslieeldr...@ discussions.mic rosoft.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******** *************** ***********@mic rosoft.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.Fo cus()

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
436
by: hzgt9b | last post by:
Using visual studio .NET 2003, VB: I'm experiencing an issue with a TreeView object when it gets focus - the first root node in the tree always gets selected when the control gets focus - even if another node has been clicked on... Here's my scenario: In my application, I have a couple of trees fully expanded as it starts up. The user then selects a node from somewhere in the tree structure. Unfortuantely, every time I've tested, the...
2
4346
by: Sean | last post by:
Hi all, I have a treeview and because I subclass the treeview and allow multiple selection to be done on the treeview, I have a problem changing the background color of the treeview. The problem is that after I multi-select the treenodes, and I try to change the background color of the treeview, those treenodes that have been multi-selected before still
0
1111
by: Steve | last post by:
The treeview has this habit of scrolling when you change the tree's selection so that the selected item is visible. 9 times out of 10 this is the behavior that you'd want, but what do I do to prevent the tree view from scrolling when making a selection? Is there a flag I can pass in with the selection change message? Is there a notification that I can grab and block? Thanks
1
2608
by: jaffar | last post by:
hi, I am using Tab control, i added the tab pages , i want to change the tab pages color when ever i select the tab page, i have tabpage1,tabpage2,tabpage3 i mean when ever i select the tab page 2 the tabpage is hilighted remaing two are not hilighted, i want to change the tab page color in one color and remaing two are in another color so that i can easyly identify that which tab page is selected
5
358
by: | last post by:
Is there an easy way to check the checkboxes via Code based on previously saved selection onto a database? Thanks, Victor
8
12770
by: Matt MacDonald | last post by:
Hi All, I have a form that displays hierarchical categories in a treeview. Ok so far so good. What I was to do is have users be able to select a node in the treeview as part of filling out the form. I only want to allow single selection, so using checkboxes is out of the question. It works as is, but it makes the form very cumbersome if every time that a user selects a node, the whole page has to reload. Is there a way to have a node...
1
3741
by: Guillermo Heizenreder | last post by:
Hi list I'm developing a application for learn pygkt, and I need to know when a user selected or clicked one determinate row of my TreeView for shot another signal . Study the tutorial I began to see the explanation that I see in the chapter 14.7. TreeView Signal and found one in particular "select-cursor-row", but I don't understood how implementing. Something like that.
18
15374
by: =?Utf-8?B?TGkgV2VuZw==?= | last post by:
Hi, Is there a way for TreeView to have multiple selections? But I am not talking about its checked boxes. I want a way similar to ListView with MultiSelect = True. So I can use or key and click to make multiple selections. Then when I simply click one item, all previous selections are gone. Thanks in advance.
2
5511
by: makennedy | last post by:
Hi Experts, Please help, I am a newbie to ASP.NET 2.0 may be I am doing something wrong or there may be a bug somewhere. Basically I have a TreeView Control which I have created programmatically. And I want to bind the selection of a TreeNode (which is a record) from the database) to a DetailsView which shows the datatable record for the selected TreeView node in the Details View. I am using IDE : Visual Web Developer 2005 Express; OS=...
0
8794
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8699
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9295
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9005
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6617
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4713
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2099
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.