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 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. 2. Create a MDI form as following. (2 marks)
3. Create Menu as: (2 marks) File Login View Orders Exit Help About 4. When the user click on the: (2 marks)
7.
Login menu item, show the Login form View Orders menu item, show the Orders form About menu item, show the About form Exit menu item, end the program
Create the MDI child Orders form as below:
5.
Create Login form as following:
6.
When the user clicked the OK button. The following validations must be performed:(3 marks)
(2 marks)
The Textboxes can not be blank. If the User name is “aptech” and Password is “winform” then show a message box to welcome and then close the Login form If the User name or Password is not correct, clear all textboxes and show a message to inform the user
(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