Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3365
  • Last Modified:

Visual Basic ToolBar Buttons

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.
1 Solution
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.
anuraggupta1Author Commented:
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.
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)


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




Featured Post

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now