Solved

Toolbar Control

Posted on 2000-05-11
11
265 Views
Last Modified: 2010-05-02
 OK I have a standard toolbar control on a form (VB6 SP3 EE).  I want to set up a button similar to the back button on the IE, a button with a down arrow that you can click to get multiple options in a menu under the button.
  There is a style called MenuButton for a button that will add the arrow, but from here how do I create the menu items for the button and how do I put icons on the drop down menu.
  Thanks
0
Comment
Question by:cavacasp
  • 6
  • 2
  • 2
  • +1
11 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 2801995
go to the toolbar's property page and click custom
click the Buttons tab and choose insert button
Give it a caption and makes its style tbrDropDown
Now the bottom part of the form is no longer greyed
choose insertbutton menu
now you can add as many menu items to that button as you want by continuously clicking insertbutton menu and adding new menu items with captions

i dont know how to get images in there though....sorry
0
 

Author Comment

by:cavacasp
ID: 2802005
Boy I must be stupid.  I didn't even see the bottom half of the screen talking about the Button Menus.  I will give you the points, but I want to leave the question open so that somebody else can get another 100 points for telling me how add pictures to the menu.
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 2802014
someone had asked this question before about getting pictures into those menus...we tried a few things but we couldnt get it to work...i'd like to see a solution to that myself.
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 9

Expert Comment

by:Ruchi
ID: 2802390
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 2802820
unfortunately we're talking about toolbar menus here Ruchi...i dont think that applies
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 2803399
i havent had the time to test it out yet but this might be what we're looking for:

http://www.vbaccelerator.com/codelib/comctl/retbar.htm
0
 
LVL 9

Expert Comment

by:Ruchi
ID: 2806045
ArazSound,
  I did not pay attention to the problem posted by Cavacasp as I was in a hurry. Sorry for misreading...
0
 
LVL 28

Accepted Solution

by:
AzraSound earned 100 total points
ID: 2840188
i am submitting an answer to this question now
0
 
LVL 1

Expert Comment

by:csameer1
ID: 2848514
To put images in i use a ImageList Control ,add pictures to it and Link it to the toolbar
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 2851630
if it were only that easy to use to add images to the menus of the toolbar, but unfortunately it isnt
0
 
LVL 1

Expert Comment

by:csameer1
ID: 2851862
oo misread it
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2016 VB code 9 115
Vb.net 2008 2 59
VBA open file from excel cell 4 42
converting visio 2010 to powerpoint 2010  - formatting issues 5 70
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 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