Freetutes.com

VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

VB .NET - Learn Visual Basic .NET

Systems Analysis - System analysis and Design tutorial for Software Engineering


You are here: Visual Basic > Advanced VB6 tutorial > Chapter 6

Relative Timing of Form Events

You might wish to refer to this section as you read the following sections on individual form events.

The following events will occur in the order listed when a form first loads into memory:

  1. Initialize
  2. Load

The following events will occur in the order listed when a form becomes the active form in the application (depending on the circumstances, this might happen right after the form loads into memory):

  1. Activate
  2. GotFocus (triggered only if there are no enabled or visible controls on the form)

The following events happen to an active form when another form in the same application becomes active:

  1. LostFocus (triggered only if there are no enabled or visible controls on the form)
  2. DeActivate

The following events will occur in the order listed when a form is unloaded from memory:

  1. QueryUnloads
  2. Unload
  3. Terminate (fires only if you set the form to Nothing in or after the Unload event)

  

<< Previous | Contents | Next >>

Home | About Us | Privacy Policy | Contact Us

Copyright © Freetutes.com | All Rights Reserved