I have problems with a form and load event.
My form manage items that can be added, deleted or modified. In load code, I initialize all vars to cero. This is OK to be ready to add items.
My problem is with modify and delete. To carry this, I must load vars from a source. So, in my foreing code I have this:
frm.duplicar load data based on 0003 as index.Code:Dim frm As newMyForm frm = New newMyForm() Dim resultado As Boolean = frm.duplicar("0003") If (resultado = False) Then MsgBox("Could not open 0003") frm.Close() Return End If frm.ShowDialog() Me.Close()
My problem is that when showdialog is called, all data which were loaded from duplicar funct is put again to cero. How can I avoid this and load correct data into the form.
Thanks




Reply With Quote
