W
Wolfgang Link
hi group,
my problem:
Form1 load Form2.
Closing Form2 with dispose
Now the form1 is hidden ??
Here is a test code:
Form1 (only one button):
-------------------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim fChildForm As New Form2
fChildForm.ShowDialog()
End Sub
Form2 (only one button):
------------------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
CloseForm(Me)
End Sub
Module1:
-----------------------------
Module Module1
Public Sub CloseForm(ByVal frm As Form2)
frm.Close()
frm.Dispose() '// memory free
End Sub
End Module
Any ideas ?
greetings from germany
Wolfgang
my problem:
Form1 load Form2.
Closing Form2 with dispose
Now the form1 is hidden ??
Here is a test code:
Form1 (only one button):
-------------------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim fChildForm As New Form2
fChildForm.ShowDialog()
End Sub
Form2 (only one button):
------------------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
CloseForm(Me)
End Sub
Module1:
-----------------------------
Module Module1
Public Sub CloseForm(ByVal frm As Form2)
frm.Close()
frm.Dispose() '// memory free
End Sub
End Module
Any ideas ?
greetings from germany
Wolfgang