H
Herwig
Hi all,
I've got an application with multiple forms: Form1, Form2, Form3.
In this application there is also a Module: Module1.
The main window is Form1 which is launched at startup.
In Module1 there is a function which opens and closes Form3:
private Function SomeFunction()
Dim PopupForm As New Form3
PopupForm.Show()
'Do something here and when done:
PopupForm.Close()
PopupForm = Nothing
end Function
As long as I call this Function from Form1 everything is OK.
As soon as I call Form2 from Form1 and call this Function from Form2:
1. Form3 won't close
2. Form3 will only close after Form2 has been closed (I've added a
Button which calls Me.Close(): I'm able to call anything from this
form - except: Me.Close() )
My Problem: I've got an application with several forms from which I
need to call a Function from a separate Module which opens a new form
containing progress information. This form needs to be closed
automatically after the process is done. How can I do this (not only
from my startup-form)?
yours
Herwig
I've got an application with multiple forms: Form1, Form2, Form3.
In this application there is also a Module: Module1.
The main window is Form1 which is launched at startup.
In Module1 there is a function which opens and closes Form3:
private Function SomeFunction()
Dim PopupForm As New Form3
PopupForm.Show()
'Do something here and when done:
PopupForm.Close()
PopupForm = Nothing
end Function
As long as I call this Function from Form1 everything is OK.
As soon as I call Form2 from Form1 and call this Function from Form2:
1. Form3 won't close
2. Form3 will only close after Form2 has been closed (I've added a
Button which calls Me.Close(): I'm able to call anything from this
form - except: Me.Close() )
My Problem: I've got an application with several forms from which I
need to call a Function from a separate Module which opens a new form
containing progress information. This form needs to be closed
automatically after the process is done. How can I do this (not only
from my startup-form)?
yours
Herwig