You are on page 1of 1

Semester 2

C# Programming Practical 1

Problem from 1st year book, Chapter 11

Question 1 – page 688 exercise 8

Create a database called Customer with one table called CustomerDetails. The
CustomerDetails table has the following fields:
Customer Number
Customer Name
Customer Area

Enter 8 records into the database.

For the Customer Area field, the valid codes are


N – North
S – South
W – West
E – East

Program Operation:

1) Write a program that will load all the records into a combo box on the screen (this must
be done at form load).
2) When a user selects a customer from the combo box, display all the data about the
selected customer in textboxes on the form.
3) When the user clicks the button to display customers in single mode, display a Single
View form and when the user clicks the Next button, the next customer must be
displayed.
4) Optional, if the user clicks the Previous button, the previous customer must be
displayed.
5) Remember to use exceptions.

You might also like