Académique Documents
Professionnel Documents
Culture Documents
QUESTION PAPER
Winforms
Set 01
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.
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)