CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    57

    How do I map Toolbar Buttons with Menu ?



    In Vc++, by using same names I can make use of the same function for a Menu and Toolbar . How do I do it in VB ?


    Anand

  2. #2
    Join Date
    Feb 1999
    Location
    kar,india
    Posts
    12

    Re: How do I map Toolbar Buttons with Menu ?



    There is no such facility in VB. What you have to do is create the Event procedures for the menu items you want. Create the same thing for Toolbar buttons also. In toolbar procedure you call the event procedures of Menu.


    For example.


    Public Sub ToolBar1_Click(....,....)

    select case Button.Caption

    ............

    case "New": call mnuFile_New_Click

    ..............

    .........

    ..........

    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured