P
Paul R
Hi,
My application should only ever display one form at a
time. To achieve this I navigate between forms using the
following logic:
From formA to formB -
formB.Show()
formA.Hide()
This is fine and works OK except in the following case:
If the form to be displayed (formB) takes a few seconds
to load, and in that time the user clicks on the current
form (formA) IN THE TASKBAR, the system displays formB
but does not hide formA. Both of the forms are displayed
in the taskbar, and both can be selected by clicking or
Alt+Tabbing.
I have put some debug in, and the form being hidden does
get the message, and it even thinks it has been hidden
(if your query the Visible property it is set to False,
even though it clearly IS visible).
This is becoming a real pain and I have not yet found a
suitab;e workaround. Can anyone help?
Thanks for any help.
My application should only ever display one form at a
time. To achieve this I navigate between forms using the
following logic:
From formA to formB -
formB.Show()
formA.Hide()
This is fine and works OK except in the following case:
If the form to be displayed (formB) takes a few seconds
to load, and in that time the user clicks on the current
form (formA) IN THE TASKBAR, the system displays formB
but does not hide formA. Both of the forms are displayed
in the taskbar, and both can be selected by clicking or
Alt+Tabbing.
I have put some debug in, and the form being hidden does
get the message, and it even thinks it has been hidden
(if your query the Visible property it is set to False,
even though it clearly IS visible).
This is becoming a real pain and I have not yet found a
suitab;e workaround. Can anyone help?
Thanks for any help.