E
eBob.com
I have a real simple app involving the main form and a subform. The main
form uses ShowDialog so that when the subform Closes it is not disposed. I
want the subform to come into view gradually, so its Load code does the
following ...
MsgBox("SubForm Load entered")
For i As Integer = 0 To 100
Me.Opacity = i / 100
Thread.Sleep(10)
Next i
(Except for the Sub and End Sub statements that's the whole thing.)
The first time the main form executes the ShowDialog for the subform I see
what I expect - the subform comes gradually into view. But the second time,
and all subsequent times, the main form executes the ShowDialog, there's a
pause - like it's cranking through the Sleep()s - and then the subform pops
up all at once. I always see the message box, so the Load code for the
subform is being executed. It's like that Me.Opacity = i/100 statement is
not executed or does not work except for the first time the Load code is
executed.
Any ideas what might be going on here?
Thanks, Bob
form uses ShowDialog so that when the subform Closes it is not disposed. I
want the subform to come into view gradually, so its Load code does the
following ...
MsgBox("SubForm Load entered")
For i As Integer = 0 To 100
Me.Opacity = i / 100
Thread.Sleep(10)
Next i
(Except for the Sub and End Sub statements that's the whole thing.)
The first time the main form executes the ShowDialog for the subform I see
what I expect - the subform comes gradually into view. But the second time,
and all subsequent times, the main form executes the ShowDialog, there's a
pause - like it's cranking through the Sleep()s - and then the subform pops
up all at once. I always see the message box, so the Load code for the
subform is being executed. It's like that Me.Opacity = i/100 statement is
not executed or does not work except for the first time the Load code is
executed.
Any ideas what might be going on here?
Thanks, Bob