U 3 A C M W: NIT Dditional Ontrols and Enus of Indows
U 3 A C M W: NIT Dditional Ontrols and Enus of Indows
2
SYLLABUS
3
3.1 WORKING WITH OTHER CONTROLS
OF TOOLBOX :
3.1.1 Date Time Picker:
4
CONT….
Properties:
5
CONT….
Method:
Event:
6
EXAMPLE
7
CONT…
8
3.1.2 List Box:
9
CONT….
Properties:
10
CONT….
Method:
Event:
11
EXAMPLE
12
CONT…
13
EXAMPLE
14
3.1.3 Combo Box:
15
CONT….
Properties:
16
CONT….
Method:
17
CONT….
Event:
18
CONT..
19
EXAMPLE
20
3.1.4 Picture Box:
21
CONT….
Properties:
22
CONT….
Method:
Event:
23
EXAMPLE
24
3.1.5 Rich Text Box:
25
CONT….
Properties:
26
CONT….
Method:
27
CONT….
Event:
28
EXAMPLE
29
3.1.6 Progress bar:
It represents a Windows progress bar control.
31
CONT….
Method:
Event:
32
EXAMPLE
33
3.1.7 Masked Text Box:
34
CONT….
Properties:
35
EXAMPLE
36
CONT…
37
3.1.8 Link Label:
38
CONT….
Properties:
Event:
39
LINK LABEL EXAMPLE
40
3.1.9 Check List Box:
A CheckedListBox control is a List Box control with
Checkbox displayed in the left side where user can
select a single or multiple items.
Properties:
41
CONT….
Method:
Event:
42
EXAMPLE
43
3.1.10 Scroll Bars:
44
CONT….
Properties:
45
CONT…
Event:
46
EXAMPLE
47
3.1.11 Timer:
Timer Control is used to set time intervals, this
control is visible only at design time and not in the
runtime.
Properties:
48
CONT….
Method:
Event:
49
EXAMPLE
50
EXAMPLE
51
3.2 WORKING WITH MENU:
First of all click on the Microsoft Visual Studio click on
the new project ,now select windows application give
title “Working_With_Menus”
Now from the toolbox of drag and drop the menu strip
control on the form, which is shown in next slide,
52
CONT….
53
CONT….
After adding this control to the form, we have to
create menu, so for that take your cursor on to
the menu strip control on the form, now write the
name of the menus which you have to create.
54
3.2.1 MENU STRIP
We had created menu strip which contains menu
like Sign In, Student, Faculty, Admin,HR,
Nontechnical.
Now if we want to create sub menu of the
Student menu, then keep your mouse on the
Student menu and then click on that menu, it
will automatically create a submenu of student
menu, then you can create submenu
55
CONT….
If we want to create a sub option in the sub
menu, then also we can do that, just go to the sub
menu name and click there, we can create that
also, which is shown below
56
CONT….
If you want delete a menu then just go that menu
and press DELETE button , then it will be
deleted from the menu bar.
58
CONT….
PopUp Menu
59
CONT….
60
CONT….
3.2.2 Context Menu Strip
Now add one button on the form, after that click
on the button, in the button properties there will
be one property called Context Menu Strip, select
there our context menu strip.
61
CONT….
Now for the popup menu, run the project then,
after execute the project, and right click on the
button, so at that time you can see the context
menu (popup) menu.
62
3.2.3 TOOL STRIP
63
EXAMPLE
64