TreeView problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If TreeView1.SelectedNode.Text = "" Then
msgbox "ok"
Else
msgbox "not ok"
end if

or


If TreeView1.SelectedNode.fullpath = "" Then
msgbox "ok"
Else
msgbox "not ok"
end if

is not working
error is: 'System.NullReferenceException'
Additional information: Object reference not set to an instance of an object.
 
I think it could be the fact that the 'SelectedNode' property is NULL

HTH

Ollie Riches
 
Back
Top