S
Scott H
Hi All,
Coming from VB6, there was a bit of a difference in the way you
display a form, I Thought I'd nailed instanciating a form, but I'm
quite stuck with something that doesn't make sense.
my main form has an event handler that instanciates a small popup form
each time it fires, the code inside the handler is:
Dim f As New frmInfoPopup
f.Show()
as soon as the End Sub of the handler is reached, it locks that form,
and doesn't repaint it, if I attempt to close it, it says its not
responding, at some point I got some mention of a
"WindowsFormParkingWindow" which wouldn't close.
I have other event handlers that instansiate a form just the same, and
they work fine.
Just as an experiment I added this to the handler:
do while f.visible
application.doevents
loop
and all is well, except that it stays in that loop using up lots of
CPU time until the popup window is closed.
BTW, the actual frmInfoPopup form/class has no code inside.
Any Help?
Scott
Coming from VB6, there was a bit of a difference in the way you
display a form, I Thought I'd nailed instanciating a form, but I'm
quite stuck with something that doesn't make sense.
my main form has an event handler that instanciates a small popup form
each time it fires, the code inside the handler is:
Dim f As New frmInfoPopup
f.Show()
as soon as the End Sub of the handler is reached, it locks that form,
and doesn't repaint it, if I attempt to close it, it says its not
responding, at some point I got some mention of a
"WindowsFormParkingWindow" which wouldn't close.
I have other event handlers that instansiate a form just the same, and
they work fine.
Just as an experiment I added this to the handler:
do while f.visible
application.doevents
loop
and all is well, except that it stays in that loop using up lots of
CPU time until the popup window is closed.
BTW, the actual frmInfoPopup form/class has no code inside.
Any Help?
Scott