By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,077 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,077 IT Pros & Developers. It's quick & easy.

TreeView, first node always selected...

P: n/a
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 first node (i.e. the 1st root
node) in the treeview always gets selected first, then selection changes to
the actual node that was clicked on... since selection of a node triggers
certian events, the erronous selection of the fist node by the .NET control.

Is this how this control's behavior is intented (or supposed) to operate?
Is there anyway to change this behavior?

Any help would be greatly appreciated!
Nov 22 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.