Hello,
I've a form that when the user clicks on a button opens a new form with a treeview with data for the user to select.
After the user selects the data and clicks OK button I want to pass the value of the row selected to a field from the first form.
I'm using a variable to put the value of the selected node:
Wich event should I use on the firts form to do something like:
I've tryed to put on the class above a command to do:
but it's not working also.
Thanks for your help,
João Pinto
I've a form that when the user clicks on a button opens a new form with a treeview with data for the user to select.
After the user selects the data and clicks OK button I want to pass the value of the row selected to a field from the first form.
I'm using a variable to put the value of the selected node:
Code:
Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
OcorrenciaSelected = trvOcorrencias.SelectedNode.Text
Me.Close()
End Sub
Wich event should I use on the firts form to do something like:
Code:
txtDescricao.Text = OcorrenciaSelected
I've tryed to put on the class above a command to do:
Code:
frmInserirOcorrencia.txtDescricao.Text = OcorrenciaSelected
Thanks for your help,
João Pinto