The Activate event occurs whenever the form gets focus and becomes the active window. This situation occurs when the form is first opened, and when the user activates the form again by clicking on the form or one of its controls. Use this event to display or hide supporting forms or toolbars.

The event procedure in Hands-On 24-10 will hide the tab labeled Personal Information when the Employees form is displayed. Notice that the tabs are numbered beginning with 0, hence the second tab in the tab control placed on the form has an index value of 1.

0 0

Post a comment