Tiilbar

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
kamran_khanAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
burakiewiczConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.