Click to See Complete Forum and Search --> : How to get a nice transition between forms ?
nic555
April 10th, 2001, 09:41 AM
Hi all,
From one frame, I "load" another one and then use "show vbmodal" to activate it.
Some of the buttons of the second form appear straight away, but the rest of the form gets visible only after one or two more seconds, sometimes more depending on the form...
Why this stupid behaviour that makes the program very annoying to use ?
Cakkie
April 10th, 2001, 09:51 AM
In the form that is to be displayed, set the visible property of the form to visible in it's load event. Then call doevents
private Sub Form_Load()
me.visible = true
DoEvents
End Sub
Tom Cannaerts
slisse@planetinternet.be
The best way to escape a problem, is to solve it.
nic555
April 10th, 2001, 11:11 AM
In the form that is to be displayed, set the visible property of the form to visible in it's load event. Then call doevents
private Sub Form_Load() me.visible = true DoEventsEnd Sub
Thanks for this answer. It seems to be a good step towards the solution.
Unfortunately, it is not the solution...yet...
The Doevents allowed me to get rid of the bad "button behaviour". Now the form appears in just one shot (though I don't really understand what Doevents does...)
My new problem is that I use Form_Load and Form_Activate to update the form everytime that it is needed. For example, I update a few captions before showing the forms... The user should not see these caption updates, but he does, because the form is first shown, then modified...
On top of that, I often the new modal form from another modal form, which prevents me from using the visible property as much as I would like... (not allowed...)
Any help ? Explaining the theory might help me better understand what is going on...
Thanks in advance.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.