Solved

Tiilbar

Posted on 2004-08-16
3
166 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now