?
Solved

Click Toolbar Buttons

Posted on 2004-09-15
1
Medium Priority
?
189 Views
Last Modified: 2012-05-05
I have a toolbar with 5 buttons, how will I write the code for each button. Its taking the whole toolbar clicked. Instead I want to know if I click open button on the toolbar it should open another form, if I click save, it should save etc. Please let me know How i can do that
0
Comment
Question by:angireddy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 27

Accepted Solution

by:
planocz earned 2000 total points
ID: 12068406
sample...

   Protected Sub toolBar1_ButtonClick(ByVal sender As Object, ByVal e As ToolbarItemClickEventArgs)
        ' Evaluate the Button property to determine which button was clicked.
        Select Case ToolBar1.Buttons.IndexOf(e.Button)
            Case 0  'New Customer
                   Dim objForm As New frmNewCust
                objForm.MdiParent = Me
                objForm.Show()
            Case 1  'Edit Customer
                   Dim objForm As New frmNewCust
                objForm.MdiParent = Me
                objForm.Show()
           End Select
    End Sub
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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