VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

Systems Analysis - System analysis and Design tutorial for Software Engineering

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

Chapter 6 - Writing Code that Processes Data Entered on a Form


This chapter deals with the following:
  • The important events of forms
  • When form events fire
  • How to effectively program with form events

A VB form supports many events to help you efficiently manage the phases of a form's lifetime within the application.

It's useful to know about programming form events because they often mark important moments in an application's runtime session, such as:

  • When a form first becomes available in memory
  • When a user changes attention between forms
  • When a form leaves memory

These events can become quite important for tying together parts of your application, for startup and cleanup operations, and for providing more global validation of user changes to controls on a form.


  1. Relative Timing of Form Events

  2. Initialize, Load, and Activate Events
          The Initialize Event
          The Load Event and the Activate Event

  3. DeActivate, Unload, QueryUnload, and Terminate Events
          The DeActivate Event
          The QueryUnload Event
          The Unload Event
          The Terminate Event

  4. Activate/DeActivate Versus GotFocus/LostFocus Events

  5. Show/Hide Methods Versus Load/Unload Statements

  6. Using the Unload and QueryUnload Events in an MDI Application

  7. Form Methods and Their Effect on Form Events
          Implicitly Loading a Form
          Show and Hide

  8. Manipulating a Form From Another Form's Load Event Procedure


Get Started >>

Home | About Us | Privacy Policy | Contact Us

Copyright © | All Rights Reserved