.Net 2 Treeview event handling

E

Eric Yeoman

Hi,

I'm trying to catch when when a node in the tree is checked - or unchecked.
I am doing this in the code behind page as follows.

As I add nodes to the tree, I use:

newNode.SelectAction = TreeNodeSelectAction.Select
node.ChildNodes.Add(newNode)

The function is defined:

Protected Sub tvAppPages_SelectedNodeChanged(ByVal sender As Object, ByVal e
As System.EventArgs) Handles tvAppPages.SelectedNodeChanged
Dim strTestString As String
strTestString = "wibble"
End Sub


Is there anything I have missed out or misunderstood?

TIA

Eric.
 

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

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top