Bahria University, Lahore Campus: Department of Computer Sciences
Bahria University, Lahore Campus: Department of Computer Sciences
Objective(s):
Interaction Styles: Menus
Lab Tasks:
Task 1: Implementation Create a menu shown in the figure. Change the font style and the
color of the font with the help of this menu
Task 2 : Group the following functions under appropriate headings, assuming that they
are to form the basis for a menu-driven word-processing system
Task 3: Design a Windows form application depicting the “Broad and Shallow” menu
structure of your choice
2. 10
3. 10
Total 30 Signature
Note : Attempt all tasks and get them checked by your Lab Instructor
Lab 5 Interaction Styles: Menus
5.1 The Main Menu Creation
To support actions that are used to graphically
enhance the functionality of an application,
the .NET Framework provides the ToolStrip
class. To support menus for an application,
the .NET Framework provides the
MenuStripclass.To graphically create a main
menu, in the Menus & Toolbars section of the
Toolbox, you can click the MenuStrip button
Lab 5 Exercise
Exercise 5.1
Create a menu shown in the figure. Change the font style and the color of the font with the help of this
menu
Solution:
//Write the same functions for Red and Green Tool Strip Item
a) Group the following functions under appropriate headings, assuming that they are to form
the basis for a menu-driven word-processing system – the headings you choose will
become the menu titles, with the functions appearing under the appropriate one. You can
choose as many or as few menu headings as you wish. Why do some functions always
seem to be grouped together?
save, save as, new, delete, open mail, send mail, quit, undo, table, glossary, preferences,
character style, format paragraph, lay out document, position on page, plain text, bold
text, italic text, underline, open file, close file, open copy of file, increase point size,
decrease point size, change font, add footnote, cut, copy, paste, clear, add page break,
insert graphic, insert index entry, print preview, page setup, view page, find word, change
word, go to, go back, check spelling, view index, see table of contents, count words,
renumber pages, repeat edit, show alternative document, help
b) Design a menu bar using windows form application keeping in mind the headings that
were created in part a.