P
Pepi Tonas
Hi all,
I have an application with a main window full of buttons. Where each
buttons opens a new form that deals with different portions of the
application.
This is not an MDI application, the main window remains open in the
background and all sub windows are opened with .ShowDialog().
To open these windows, I use the following code on the main form:
Private Sub btnNotas_Click( . . . ) Handles btnNotas.Click
Dim frmNotas As New frmNotas
frmNotas.ShowDialog()
frmNotas.Activate()
End Sub
On the child form, to close (leave) I use:
Private Sub btnReturn_Click( . . . ) Handles btnReturn.Click
Me.Close()
End Sub
This forms take time to load and the user sometimes feels the program
may be unresponsive.
Is there a way to preload these child forms at start up, without
showing them until the user clicks on the assigned button.
If so, what would be the code used to hide it and return control to
the main form.
Right as I am doing it, I am creating a new instance of the form every
time the buttons are clicked and destroying it when user returns to
the main form.
Thanks in advance....
I have an application with a main window full of buttons. Where each
buttons opens a new form that deals with different portions of the
application.
This is not an MDI application, the main window remains open in the
background and all sub windows are opened with .ShowDialog().
To open these windows, I use the following code on the main form:
Private Sub btnNotas_Click( . . . ) Handles btnNotas.Click
Dim frmNotas As New frmNotas
frmNotas.ShowDialog()
frmNotas.Activate()
End Sub
On the child form, to close (leave) I use:
Private Sub btnReturn_Click( . . . ) Handles btnReturn.Click
Me.Close()
End Sub
This forms take time to load and the user sometimes feels the program
may be unresponsive.
Is there a way to preload these child forms at start up, without
showing them until the user clicks on the assigned button.
If so, what would be the code used to hide it and return control to
the main form.
Right as I am doing it, I am creating a new instance of the form every
time the buttons are clicked and destroying it when user returns to
the main form.
Thanks in advance....