winform set 05
TRANSCRIPT
-
8/14/2019 Winform Set 05
1/4
PRACTICAL EXAMINATIONQUESTION PAPER
WinformsSet 05
Semester: 3 Curriculum: ACCP
Date: 27/11/2005 Duration: 2 Hours
Total Marks: 30
Important to students
Read carefully the following instructions before doing your work on the examination. Yourwork 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
-
8/14/2019 Winform Set 05
2/4
Question:
You are required to develop the following modules of an online messenger system: [30]
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 andpassword and performs the user authentication. The user should not be able touse 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 Figure2.
Winform Set 05 Q.P. Page 2 of 4
-
8/14/2019 Winform Set 05
3/4
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
-
8/14/2019 Winform Set 05
4/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: MSGDATATable: MsgUsers
Column Description
UserName Login namePassword PasswordFullName Full name of the user
Table: MsgBox
Column Description
MsgID Message ID Identity columnMsgFrom Message from - user nameMsgTo Message to - user nameMsgSub Subject lineMsgBody Body of the messageMsgDate Message date
The database must be created in SQL server, and student must generate thescript of creating tables and write down script to insert data into tables. Allscripts must be submitted in the file .SQL and save in thesubmitted folder.
Winform Set 05 Q.P. Page 4 of 4