0% found this document useful (0 votes)
4 views5 pages

Lab 4-5

The document outlines the creation of a C# application named 'listViewFormTest' to study keyboard events and menus. It details the implementation of various keyboard event properties and the creation of a menu with functionalities such as changing label colors and font styles. The program also includes features for adding, modifying, and deleting menu items, as well as handling shortcuts and right-to-left properties.

Uploaded by

Ahmed Al-nasheri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Lab 4-5

The document outlines the creation of a C# application named 'listViewFormTest' to study keyboard events and menus. It details the implementation of various keyboard event properties and the creation of a menu with functionalities such as changing label colors and font styles. The program also includes features for adding, modifying, and deleting menu items, as well as handling shortcuts and right-to-left properties.

Uploaded by

Ahmed Al-nasheri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Lab 4-5

List View

Create C# Application called listViewFormTest which look like

After you run the program it will display


Keyboard Events

Create the following form, where:

We will study the following Keyboard Events:

KeyEventArgs

Events Properties

Alt

Ctrl

Key Down Shift

Key Up Keycode

KeyData

KeyValue

KeyPressEventArgs

Events Properties

Key Press KeyChar


Menus

First: Create the following form, with the displayed menu:

Discuss the following concepts:

 Menustrip
 Menuitem (Add, modify and delete)
 Separater Line
 Submenus
 Shortcuts (Using &)
 ShortCut property + ShowShortcut
 Righttoleft property

Second: Create another form, with the following Menu


Add an ordinary label to the form, then

Activate the displayed menu items as follows:

A) Close  Closes the form


B) Red  Changes the font color of the label into red
C) Blue  Changes the font color of the label into blue
D) Green  Changes the font color of the label into green
E) Times New Roman  Changes the font name of the label to "Times
New Roman"
F) Arial  Changes the font name of the label to "Arial"
G) Tahoma  Changes the font name of the label to "Tahoma"
H) Bold, Italic and Underline  each changes the style of the label font
Hint: Make them act like Checkboxes, working with properties
(CheckOnClick and Checked)

This program will allow you to add name an association to the view list.

Tree

You might also like