Presentation is loading. Please wait.

Presentation is loading. Please wait.

Custom dialog boxes Unit objectives

Similar presentations


Presentation on theme: "Custom dialog boxes Unit objectives"— Presentation transcript:

1 Custom dialog boxes Unit objectives
Add a user form to your project and add controls to that user form Handle events attached to controls in a user form and validate the data entered by users

2 Topic A Topic A: User forms Topic B: Events

3 The UserForm window UserForm window Toolbox

4 Activity A-1 Adding a user form

5 Controls in Toolbox Label - displays text on a user form
TextBox - accepts data from users CommandButton - performs actions ListBox - displays a list of values CheckBox - indicates if an option is selected or not OptionButton - represents a single option in a group ComboBox - a combination of a list box and a text box

6 Adding controls to a form

7 Adding controls to a user form
Activity A-2 Adding controls to a user form

8 Adding controls to a user form (Movie)

9 Topic B Topic A: User forms Topic B: Events

10 UserForm object events
Activate Deactivate Click DblClick Initialize Terminate

11 Common control events Change Click DblClick BeforeUpdate AfterUpdate

12 Attaching an event handler to a control
Activity B-1 Attaching an event handler to a control

13 Validating data by using event handlers
Activity B-2 Validating data by using event handlers

14 Unit summary Learned how to create a user form and add controls to it
Learned how to handle events attached to controls and validate data entry


Download ppt "Custom dialog boxes Unit objectives"

Similar presentations


Ads by Google