0% found this document useful (0 votes)
24 views1 page

Semester 2 Practical 1

The document provides instructions for a C# programming practical assignment involving creating a CustomerDetails database table with fields for customer number, name, and area code. It asks the student to enter 8 records into the table and write a program that loads the records into a dropdown menu, displays the selected customer's data in textboxes, and allows navigating between customers in a single view using Next and Previous buttons. Exceptions should be used.

Uploaded by

EugeneVN
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

Semester 2 Practical 1

The document provides instructions for a C# programming practical assignment involving creating a CustomerDetails database table with fields for customer number, name, and area code. It asks the student to enter 8 records into the table and write a program that loads the records into a dropdown menu, displays the selected customer's data in textboxes, and allows navigating between customers in a single view using Next and Previous buttons. Exceptions should be used.

Uploaded by

EugeneVN
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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