Options in Menu

Posted on 1999-12-29
Medium Priority
Last Modified: 2010-05-02
I have a menu bar.  I want to make an option where there is a checkbox next to it.  I want it to look like the toolbars menu option on the Visual Basic menus.  If someone could help me and tell me where I could find out how to do this much appreciated!

Question by:nrok829
LVL 43

Expert Comment

ID: 2312578
The toolbars list that you mention, is I think a list box with checkbox style set. If you want menu items to be checked, each menu item has a .checked property which you can toggle when the user clicks that item, this displays a tick next to the menu item. If you want to get more complicated, it is possible to create and use your own bitmaps instead of the default tick.

Accepted Solution

BackAlly earned 40 total points
ID: 2313416
When you enter the menu editor, select the checked box on the items you want checked.

From the code, it can be checked, unchecked and tested for check by using :

mnuOption.Checked = False/True


If mnuOption.Checked = False/True

Use the mnuOption_Click event to alternate the checkboxes and do processing from there.  Email me if you need more information!


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

600 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