Results 1 to 2 of 2

Thread: A smoother way to display a form anyone ?

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    39

    Exclamation

    I have a problem with a couple of forms in an app I am using,
    The main form (which is an MDI child) has two MSFLexgrids with about 20 rows in each, one picture box with a shape and an icon in it. I call it from a menu of another form, when I call it I run a couple of functions which use objects on that form. Eg: One to fill the grids, one to color the grids.

    Like this

    Call Get_Rows
    Call Color_Rows
    frmselect.show

    Problem is I see the grids first with the form I called the new form from visible in sections of the screen not covered by the grid for a couple of seconds before it evetually draws in. Autoredraw is false and clip controls is true. Does anyone know of an easy way to improve this ?

    Thanks.

  2. #2
    Guest
    Try something like:

    Code:
    Private Sub menu_Click()
    Load frm
    DoEvents
    frm.Show
    End Sub
    That is, if you have the code in your form load event.

    Code:
    Private Sub Form_Load()
    Call Get_Rows 
    Call Color_Rows 
    frmselect.show 
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width