G
Guest
In the following VB.Net code; how do I invoke the TV_Click event in Button2's
Click event. Thans
Private Sub TV_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles TV.Click
MsgBox(TV.SelectedNode.Text)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
TV.SelectedNode = TV.Nodes(1)
TV.Focus()
''' INVOKE the TV_Click EVENT HERE so the msgbox will be displayed
End Sub
Click event. Thans
Private Sub TV_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles TV.Click
MsgBox(TV.SelectedNode.Text)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
TV.SelectedNode = TV.Nodes(1)
TV.Focus()
''' INVOKE the TV_Click EVENT HERE so the msgbox will be displayed
End Sub