Hi Chris,
Thanks for your post. I agree with Armin and strongly recommend you use
ShowDialog to display the form modally. In addition, the original form is
able to be notified when the newly created form is closed in the Closed
event handler of the new form. Please refer to the following code snippet:
'------------------------code snippet---------------------------
Public Class Form1
Inherits System.Windows.Forms.Form
Dim WithEvents myForm As New ReqVendorSelect
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
myForm.Visible = True
End Sub
Private Sub myForm_Closed(ByVal sender As Object, ByVal e As
System.EventArgs) Handles myForm.Closed
MsgBox("myForm closed")
End Sub
End Class
'--------------------------end of------------------------------------
Hope this helps.
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! --
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.