AllFreePapers.com - All Free Papers and Essays for All Students
Search

Key Trapping

Autor:   •  January 29, 2016  •  Lab Report  •  1,356 Words (6 Pages)  •  696 Views

Page 1 of 6

Activity

Key Trapping

Objectives:

        At the end of the lesson, you should be able to:

  1. Trap inputs for a textbox (such as letters, numbers and other keys or symbols).
  2. Use and apply input mask for a MaskedTextBox.
  3. Use a combobox.
  4. Use a listbox.
  5. Differentiate combobox from listbox.
  6. Use a radio button.
  7. Differentiate radio button from checkbox.
  8. Use DateTime Picker to display the current date and time.
  9. Use DateTime Picker to automatically compute age.

1. Draw an interface like this. (Note: Don’t mind the text of the textboxes and listbox yet, these will be done with the next steps - setting properties)

[pic 1]

                        

        [pic 2]

                                

                                

                                        

                                

                                                                

                                

        

                

                                                                                                                

                                

        

2. Set the control’s names in the properties window as follows. Name the form frmInputValidation.

[pic 3][pic 4]

3. Set the following additional properties for each control:

Control/Object

Property

Value

frmInputValidation

Text

Input Validation

ControlBox

False

StartPosition

CenterScreen

FormBorderStyle

FixedDialog

txtStudID

Text

None

Mask

00-00000

txtFName

Text

None

CharacterCasing

Upper

txtMName

Text

None

CharacterCasing

Upper

txtLName

Text

None

CharacterCasing

Upper

lstCollege

Items

Click the ellipsis then type the following:

Choose a College

CICS

CPAD

COE

CIT

CVM

cbCourse

Items

Click the ellipsis then type the following:

BSIT

BSCS

ABPA

BSECE

BSINTECH

ABPolSci

BSMath

dtBDay

CustomFormat

MM-dd-yyyy

txtAge

Text

None

ReadOnly

True

txtHeight

Text

None

Mask

0.00

lblDateTime

Text

None

btnClear

Text

&CLEAR

btnClose

Text

C&LOSE

rbMale

Text

Male

rbFemale

Text

Female

gbGender

Text

Gender

...

Download as:   txt (6.3 Kb)   pdf (467.2 Kb)   docx (2.2 Mb)  
Continue for 5 more pages »