I'm doing an application in VB.NET and I have a complication that I had not noticed. It turns out that from a main form [ frmInventario
] I perform an operation through a procedure and show the result in another window frmCoincidentes
, to open this window I use the method showDialog()
of VB.NET
When I open it for the first time everything is excellent, but when I close the form and if I open it again, I do not perform the operation I want.
That's the way I open the frm
Private Sub btnVerAdicionales_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnVerAdicionales.Click
LlenarExistencias()
llenarUNION()
If CInt(frmCoincidentes.DataGridView2.Rows.Count) > 0 Then
frmCoincidentes.ShowDialog()
Else
MsgBox("Falta Informacion.", MsgBoxStyle.Information, "Info Adicionales")
End If
End Sub
NOTE: To load the data again, I have to close the application completely and then reopen it.