Toolbar, statusbar, coolbar in vb
-
Upload
amandeep-kaur -
Category
Documents
-
view
4.868 -
download
4
Transcript of Toolbar, statusbar, coolbar in vb
![Page 1: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/1.jpg)
“TOOLBARS,STATUSBAR,COOLBARS”
![Page 2: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/2.jpg)
“TOOLBAR”
1.Adding a ToolBar To a Form
STEPS:-Select the Project/Components menu item.Click the Control Tabs in the components
dialog boxSelect Microsoft windows common controls
item and click on OK to close the dialog Box.
This adds the Toolbar Control tool to the visual Basic
![Page 3: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/3.jpg)
![Page 4: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/4.jpg)
![Page 5: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/5.jpg)
![Page 6: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/6.jpg)
Adding Buttons To a Toolbar
Steps:-
Right Click the control and click properties
item in the menu that appears.
When the Toolbar’s property pages open,click
the Buttons Tab.
![Page 7: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/7.jpg)
![Page 8: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/8.jpg)
Handling Toolbar Button Clicks
How to make these buttons active:
Do it with the Toolbar control’s ButtonClick event.
The button the user clicked is passed in the event
handler procedure.
We can determine which button was clicked by
checking its index properties. With the help of
message box.
![Page 9: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/9.jpg)
![Page 10: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/10.jpg)
![Page 11: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/11.jpg)
Adding Separators to a Toolbar
In Toolbars,separators appear as blank
spaces,setting group of button aparts.
STEPS:-
Insert a new button into a toolbar and set its
STYLE proerty to tbrSeparator.
Now,add other buttons and click OK to close the
property page
![Page 12: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/12.jpg)
![Page 13: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/13.jpg)
![Page 14: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/14.jpg)
Adding Images to toolbar
Steps:
Add image list to a program now.
Right click the image list control
Select the poperties menu and click the images tab.
Click the insert Picture button to insert the first
image and more and click OK.
![Page 15: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/15.jpg)
Status Bar
STEPS:-Select the Project/Components menu item.Click the Control Tabs in the components
dialog boxSelect Microsoft windows common controls
item and click on OK to close the dialog Box.
This adds the status tool to the visual Basic
![Page 16: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/16.jpg)
![Page 17: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/17.jpg)
ADDING PANELS
STEPS:-
Right Click the status bar and click properties item in
the menu that appears.
Click the panels tab in the property pages
Click the insert panel button as many times you want
panels in your status bar
Close the property pages by clicking on OK.
![Page 18: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/18.jpg)
![Page 19: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/19.jpg)
![Page 20: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/20.jpg)
Display Text in Status Bar
![Page 21: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/21.jpg)
DISPLAY DATE,TIME IN A STATUS BAR
![Page 22: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/22.jpg)
![Page 23: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/23.jpg)
![Page 24: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/24.jpg)
COOLBAR
1.Adding a CoolBar To a Form
STEPS:-Select the Project/Components menu item.Click the Cool Tabs in the components dialog
boxSelect Microsoft windows common controls 3
item and click on OK to close the dialog Box.
This adds the Toolbar Control tool to the visual Basic
![Page 25: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/25.jpg)
![Page 26: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/26.jpg)
![Page 27: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/27.jpg)
ADDING CONTROL TO COOLBAR BANDS
![Page 28: Toolbar, statusbar, coolbar in vb](https://reader033.fdocuments.in/reader033/viewer/2022061409/55625a6ad8b42aa02d8b5797/html5/thumbnails/28.jpg)