0% found this document useful (0 votes)
25 views

Create The Following Form To Accept Customer Information: Chapter 5 Assignment

This document provides instructions for two assignments: 1. Create a customer information form with specified data validation rules such as requiring fields, uppercase customer IDs of maximum 5 characters, valid email format, phone number format of (000)-000-0000, numeric extension of maximum 3 characters, selectable country options from a combo box, and numeric postal code of maximum 3 characters. The user should be notified of errors and the invalid field given focus. 2. Create a Windows Explorer-like application to view the contents of the C drive using a TreeView and ListView with specified icons. Only display the subfolders and files of a selected folder node in the TreeView to avoid loading all drive contents at once. Handle the AfterSelect

Uploaded by

khai
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Create The Following Form To Accept Customer Information: Chapter 5 Assignment

This document provides instructions for two assignments: 1. Create a customer information form with specified data validation rules such as requiring fields, uppercase customer IDs of maximum 5 characters, valid email format, phone number format of (000)-000-0000, numeric extension of maximum 3 characters, selectable country options from a combo box, and numeric postal code of maximum 3 characters. The user should be notified of errors and the invalid field given focus. 2. Create a Windows Explorer-like application to view the contents of the C drive using a TreeView and ListView with specified icons. Only display the subfolders and files of a selected folder node in the TreeView to avoid loading all drive contents at once. Handle the AfterSelect

Uploaded by

khai
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Chapter 5 Assignment

1. Create the following form to accept customer information

Implement the following data validation for the form


- All fields are required
- Customer ID accepts maximum 5 characters, all chars must be entered in
upper case
- Email must be in correct email format (hint: must have (@) and (.) in corrcet
position)
- Phone no. must be in format of (000)-000-0000 in which 0 represents a 0-9
number
- Extension must be numeric and accepts maximum 3 chars
- Country combo box contains some country options and only allows users to
select the available options not input new country
- Postal code must be numeric and accepts maximum 3 chars

You can use either field level or form level validation. The user should be informed of
their input errors and the focus should be set to the control having the error.

2. Create the following windows explorer like application

This application should allow users to view the contents (subfolders and files) of C
drive

Guides:
- Use TreeView and ListView to display the drive contents. Use an imagelist to
store the icons displayed in the treeview and listview. Use the following icons:

o C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Graphics\icons\Win95\


CLSDFOLD.ICO
o C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Graphics\icons\Win95\
OPENFOLD.ICO
o C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Graphics\icons\Office\
CRDFLE07.ICO
- Only display subfolders and files of a folder when it is selected. This is to avoid
the long process of loading all drive contents at form load. Handle the event
AfterSelect of the treeview to display the selected node content

You might also like