hello
i have a button in my main form that shows a modal dialogbox, the user inputs data in the dialogbox and then click ok to save the data, but the execution doesn't resume after the form.showdialog() line, heres my code:
what can i do tho resume the execution after the showdialog call??
thank you
i have a button in my main form that shows a modal dialogbox, the user inputs data in the dialogbox and then click ok to save the data, but the execution doesn't resume after the form.showdialog() line, heres my code:
Visual Basic:
Private Sub verBotonAgregarCita_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles verBotonAgregarCita.Click
Dim acitas As New aCitas 'new dialogbox
acitas.idpacientecur = idPacienteCur
acitas.ShowDialog() 'nothing after this line will be executed
'code to update a datagrid
Dim query As String
Dim citas As New DataTable
query = "select id_cita,tratamiento,anticipo,fecha from citas where id_paciente=" + idPacienteCur
citas = selectDatos(Me.cnxStr, query)
verTablaCitas.DataBindings.Clear()
verTablaCitas.SetDataBinding(citas, "")
estilo1.MappingName = citas.TableName
colSaldo.MappingName = citas.Columns(2).ColumnName
colTratamiento.MappingName = citas.Columns(1).ColumnName
colFecha.MappingName = citas.Columns(3).ColumnName
colId.MappingName = citas.Columns(0).ColumnName
End Sub
what can i do tho resume the execution after the showdialog call??
thank you