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

treeview selection issue

P: n/a
Sam
Hi,
When my form is loaded and when I click on a node of my treenode, the
first node is always selected first and then I can select whatever node
I want. How come the first node get selected even if I don't click on
it (i havent done any hardcoded selection)

Can someone help please ?

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

Use the Treeview's selectednode property to select a node with
code

http://msdn.microsoft.com/library/de...dnodetopic.asp

Ken
------------------------
"Sam" <sa**************@voila.fr> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi,
When my form is loaded and when I click on a node of my treenode, the
first node is always selected first and then I can select whatever node
I want. How come the first node get selected even if I don't click on
it (i havent done any hardcoded selection)

Can someone help please ?

Nov 21 '05 #2

P: n/a
"Sam" <sa**************@voila.fr> schrieb:
When my form is loaded and when I click on a node of my treenode, the
first node is always selected first and then I can select whatever node
I want. How come the first node get selected even if I don't click on
it (i havent done any hardcoded selection)


\\\
Me.TreeView1.SelectedNode = tn
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.