#1
  1. Digitally Challenged
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    280
    Rep Power
    12

    executing a command immediatly


    hey, i'm building a program to run some scripts on my computer, and i need to have it do something immedialy when the form loads, so how do i do that? i tried to see if there was an onload or onstart command for a form but haven't found anything yet. so how do you do it?
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,430
    Rep Power
    4539
    VB6 forms have a load event. Look at the events available for the form in design mode.
  4. #3
  5. Digitally Challenged
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    280
    Rep Power
    12
    ok here's the next problem, i'm using vb5
  6. #4
  7. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    Try the Initialize procedure. Which is triggered before the form is displayed, or you could try the Activate procedure which is triggered after the form is displayed.

IMN logo majestic logo threadwatch logo seochat tools logo