Solved

Tiilbar

Posted on 2004-08-16
3
168 Views
Last Modified: 2012-05-05
Toolbar,
i am working on vb.net and now i want to use the toolbar in my project so tell me
How i can use toolbar in vb.net?

thanks
0
Comment
Question by:kamran_khan
3 Comments
 
LVL 16

Accepted Solution

by:
burakiewicz earned 500 total points
ID: 11817902
use an imagelist and the toolbar controls.  Set the toolbar buttons to the images in the list then to use them.


Private Sub toolBar_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles toolBar.ButtonClick
   
intIndex = e.Button.ImageIndex() 'Gets the imageIndex for which button is pressed

if intIndex = 0 then
'do this
else if intIndex =2
'do this
end if

end sub
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Advice in Xamarin 21 79
.NET tools for adding thread safety to a web app? 3 35
Web Form VB.Net  import CSV 4 39
VB.Net Report Printing Issue 3 34
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question