Visual Basic ToolBar Buttons

Posted on 2004-11-02
Last Modified: 2013-11-25
hello experts. please tell me what is the difference between tbrplaceholder and  tbrdropdown styles of buttons used in toolbar.  please provide me a sample code which uses both of these.
Question by:anuraggupta1
    LVL 11

    Expert Comment

    tbrplaceholder is just that - a place holder. It is the size of a button, but not a button. It is used for spacing.

    tbrdropdown is a drop down item, like a menu drop down. You can add items to it like this:
      Dim b As ButtonMenu
      Set b = myToolBar.Buttons("buttonName").ButtonMenus.Add(,, "Your Text")

    Good luck.

    Author Comment

    Thanks bingie feedback !!

    >> tbrplaceholder is just that - a place holder. It is the size of a button, but not a button. It is used for spacing

    then why is there tbrseperator. becuase there deoes not seem much difference between tbrseperator and tbrplaceholder.

    Can you please provide me an example (like in MS Word or IE etc)  or sample code where these have been used.
    thanks again.
    LVL 3

    Accepted Solution

    The placeholder is just a little gap inbetween two buttons
          --> (open up your IE or word and look for a | inbetween two buttons)

    The drowndown list is a button with a little arrow next to it that roll open for other options.
          --> (open up your IE and look at the back and forward button.. that's an example of a dropdown button)

    LVL 1

    Expert Comment


    tbrplaceholder is not just a space between two buttons, its used to place combo boxes and other stuff in toolbars. u can increase the button width, set it to a place holder and place a combo box there.

    since the previous comments describe drop down i assume that u know them




    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now