Flickering forms


Posted by Bryan Vakos on March 17, 2001 3:18 PM

In a futile attempt to be clever, I have one of my macro forms sliding open instead of just appearing. The problem is that all the other controls on the form flicker while it's doing this. This doesn't happen in regular VB6 and I was wondering if anyone knew how to make it stop. Thx

Here's the bit:

For i = 130 To 300 Step 1
Form.Height = i
Form.Repaint
Next



Posted by Dave Hawley on March 17, 2001 8:38 PM


Hi Bryan

I think the best you will be able to do is set the visible property of all other controls to False and then have them appear after your form has fully opened.

Dim MyControl as Control
For Each MyControl in Me.Controls
MyControl.Visible=True
Next


Dave

OzGrid Business Applications