How do I use prevHoveredNode property handling event of TreeView?
Event is fired when I click on a node of a TreeView (TSTViewAnalisi)
In output window I read the correct value but when I compile a project, VS2019 marks one error of non existing property.
Private Sub TSTViewAnalisi_MouseUp(sender As Object, e As MouseEventArgs) Handles TSTViewAnalisi.MouseUp
Dim a As String = sender.SelectedNode.prevHoveredNode.Text
The basic EventHandler Delegate passes you an
Objectas the first parameter.Objectdoes not have a definition ofSelectedNode. But this is expected and common, and you just need to cast the sender to the appropriate type,or you could directly access the control