hi there ,
i would like to use the select statement in this event and not sure how to proceed...
Private Sub TreeView1_AfterSelect(sender As Object, e As TreeViewEventArgs) Handles TreeView1.AfterSelect
Dim NS As String = ""
Select Case NS
Case "Monday"
If NS And e.Node.Text = "Monday" Then
MessageBox.Show("The user clicked on the Child Node " & e.Node.Text, " Which Node Selected", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
Case "Tuesday"
If e.Node.Text = "Tuesday" Then
MessageBox.Show("The user clicked on the Child Node " & e.Node.Text, " Which Node Selected", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
Case "Wednesday"
If e.Node.Text = "Wednesday" Then
MessageBox.Show("The user clicked on the Child Node " & e.Node.Text, " Which Node Selected", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
Case "Thursday"
If e.Node.Text = "Thursday" Then
MessageBox.Show("The user clicked on the Child Node " & e.Node.Text, " Which Node Selected", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
Case "Friday"
If e.Node.Text = "Friday" Then
MessageBox.Show("The user clicked on the Child Node " & e.Node.Text, " Which Node Selected", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
Case "Saturday"
If e.Node.Text = "Saturday" Then
MessageBox.Show("The user clicked on the Child Node " & e.Node.Text, " Which Node Selected", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
Case "Sunday"
If e.Node.Text = "Sunday" Then
MessageBox.Show("The user clicked on the Child Node " & e.Node.Text, " Which Node Selected", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
End Select
End Sub
Thanks for all your replys. :-)