09-27-2012, 03:08 PM
If you are using .NET 3.0 or above, the following code will work to see if the user is selecting something.
[code2=vbnet]If Not (TreeView1.SelectedItem Is Nothing) Then
MsgBox("The User is not selecting anything!")
End If[/code2]
[code2=vbnet]If Not (TreeView1.SelectedItem Is Nothing) Then
MsgBox("The User is not selecting anything!")
End If[/code2]