PRACTICAL EXAMINATION QUESTION PAPER Winforms Set 05 Semester: 3
Curriculum:
ACCP
Date:
Duration:
2 Hours
27/11/2005
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, sql, ...) in the created folder, do not classify into sub-folders. All other locations will be ignored.
Winform Set 05
Q.P.
Page 1 of 4
Question: You are required to develop the following modules of an online messenger system: •
MDI Form with Toolbar: The toolbar will have the following buttons: • Compose Message: To load Send Message Form • Check Messages: To load or reload message inbox form. • Close Message Box: To unload message listing form. • Log out: To exit the application.
•
Login Form: This start up form, as shown in Figure 1, accepts login name and password and performs the user authentication. The user should not be able to use the application, if user authentication is failed.
Figure 1 •
Message List Form: This form is loaded immediately after the successful logon and will list all the messages addressed to the current user as shown in Figure 2.
Winform Set 05
Q.P.
Page 2 of 4
[30]
Figure 2 •
Compose Form: This form is used to compose and send message as shown in Figure 3
Figure 3
Winform Set 05
Q.P.
Page 3 of 4
Notes: • The user can use only one form at a time. So when a form is loaded, the tool buttons to load other forms must be disabled. •
It should be ensured that none of the input fields are left blank before sending a message by clicking on the Send button
•
The database tables to be used for the above application are listed below:
•
Database name: Table:
MSGDATA MsgUsers
Column
Description
UserName Password FullName
Login name Password Full name of the user
Table:
MsgBox
Column
Description
MsgID MsgFrom MsgTo MsgSub MsgBody MsgDate
Message ID – Identity column Message from - user name Message to - user name Subject line Body of the message Message date
The database must be created in SQL server, and student must generate the script of creating tables and write down script to insert data into tables. All scripts must be submitted in the file <Student Number>.SQL and save in the submitted folder.
Winform Set 05
Q.P.
Page 4 of 4