Вы находитесь на странице: 1из 3

PRACTICAL EXAMINATION

QUESTION PAPER

Winforms
Set 01

Semester: 3 Curriculum: ACCP


Date: Duration: 2 Hours
Total Marks: 30

Important to students
Read carefully the following instructions before doing your work on the examination.
Your work will NOT be accepted for evaluation UNLESS it conforms to all the instructions.
- Students must create a folder named <Roll-Number> in the specified location (e.g.
d:\Online) and save all necessary files (including source, class, html, database, txt, ...) in
the created folder, do not classify into sub-folders.

Winforms-Set 01 Pract. Q.P. Cover page


Question 1 (30 marks)
1. Create a new Winform project. 5. Create Login form as following: (2 marks)
2. Create a MDI form as following. (2 marks)

3. Create Menu as: (2 marks) 6. When the user clicked the OK button. The
File Login following validations must be performed:(3 marks)
View Orders  The Textboxes can not be blank.
Exit  If the User name is “aptech” and Password is
4. Help About When the user “winform” then show a message box to welcome and
click on the: (2 marks) then close the Login form
 Login menu item, show the Login form  If the User name or Password is not correct, clear all
 View Orders menu item, show the Orders textboxes and show a message to inform the user
form
 About menu item, show the About form
 Exit menu item, end the program
7. Create the MDI child Orders form as below: (3 marks)
Using NorthWind database which is
available in SQL server, write code to
performs the tasks as following:
 When the form is loaded, populate
Combobox with CompanyName from
Customers table. (4 marks)
 When the user select a customer from
Combobox, all Orders (from Orders
table with OrderID, OrderDate and
ShipCountry fields) of that customer
must be shown in the DataGrid on the
left of the form. (5
marks)
 When the user select an Order from the
Orders list, all details (ProductName,
UnitPrice, Quantity and Amount fields
(Amount=UnitPrice*Quantity)) of that
order must be shown in the DataGrid on
the right of the form. (5 marks)
8. Create About form as: (1 marks)
Insert the images into the form (any image) and the Close button
Write code to close the form when the user click on the Close
button. (1 marks)



Winforms-Set 01 Pract. Q.P. Page 1 of 1

Вам также может понравиться