|
Accesing Control Properties on Another Form
I'm trying to enable a button on the main form, once the child form is closing. I'm using a MDI here, and I noticed that if I do this by a button click on the child form it works. But it aint happening if i use the FormClosing or FormClosed events.
Please Help
Private Sub frmSuppliers_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
Dim frmMain As New frmMain
frmMain.tsbSuppliers.Enabled = True
End Sub
|