Results 1 to 9 of 9

Thread: Running code after form load

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258

    Post Running code after form load

    How can I execute code after form load is finished and the form is visible.

  2. #2
    PowerPoster Arbiter's Avatar
    Join Date
    Sep 2000
    Location
    Manchester
    Posts
    2,276
    In the form_Activate maybe? I don't have VB in front of me so it's just an educated guess....
    Gentile or Jew,
    O you who turn the wheel and look to windward,
    Consider Phlebas, who was once handsome and tall as you...

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    But i dont wabt to execute the code every time the form activates.

  4. #4
    spetnik
    Guest
    Well, if you call the .Show method of the form in the load event, it will display the form before running anything else. You may want to add a DoEvents after calling show, though.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258

    Thank you

    yasher kochachem ich hob es nisht gevist

  6. #6
    spetnik
    Guest
    Boruch Tehiyeh

  7. #7
    Addicted Member
    Join Date
    Oct 1999
    Location
    The Lone Star State
    Posts
    183
    Sub Form_Load()

    ....Other code here

    Me.Show

    Call MySub

    End Sub
    !

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    But why cant the user click anything till the end sub of form load executes

  9. #9
    spetnik
    Guest
    Originally posted by spetnik
    Well, if you call the .Show method of the form in the load event, it will display the form before running anything else. You may want to add a DoEvents after calling show, though.
    Do I hear an echo???

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