Results 1 to 4 of 4

Thread: Loading a process ONLY after loading a form

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    7

    Wink

    hi~!~!

    say i've a form (which is my main program too) which needs to be loaded. after loading it i want some process to be started automatically ONLY after the form has been loaded. is there a way to trigger my process?

    what i've been able to do is to load my processes while the form is being loaded but not after it has been loaded though.

    hope someone can help

    regards,
    virux


  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    This is my workaround:

    Code:
    Private Sub Form_Activate()
    Static Init As Boolean
    
    If Not(Init) Then
         'Do your processing stuff here
         Init = True
    End if
    End Sub
    Hope it helps,

    Me
    Courgettes.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    7
    hi thanks for the reply!

    where do u call Form_Activate? from within my Form_Load? or just leave it alone, which means it's being called automatically by the system?

    regards,
    virux

  4. #4
    Guest
    You don't need to call Activate (it's an event). Just insert V(ery) Basic's code into your Form and you should be on your way.




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