Wednesday, August 1, 2007

Programming Exercise 5: Windows Forms

Create a windows application that allows a user to input the following in a Windows form titled 'Add User':
  • User ID
  • Password
  • First Name
  • Last Name
  • E-mail Address
The application should also contain two buttons: "Add" and "Clear". Clicking on the "Add" button will display all the entered fields on a separate Windows form. The displayed text should follow this format:
  • User ID : UserID
  • Password: Password
  • First Name: First Name
  • Last Name: Last Name
  • E-mail Address: E-mail Address
Hint: You can use the MessageBox class for this purpose.

Clicking on the "Clear" button clears all fields.

Here's a screenshot on how the application will look like: