Solved

How disable or remove a menu option at run time?

Posted on 2001-08-07
4
150 Views
Last Modified: 2010-05-02
Basics:  VB6 sp5 on Windows NT.

Question:  Based on certain conditions I want to disable or even eliminate some menu options.  How can that be done?

Thanks.
0
Comment
Question by:EYoung
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
JonFish85 earned 25 total points
ID: 6362043
MyMenuName.Enabled = False

or

MyMenuName.Visible = False

use it just like you would for a regular button...
0
 
LVL 3

Expert Comment

by:andysalih
ID: 6362062
also to add to johns comment,

if you want to disable buttons or labels or text on your menu.

then

command1.enable=false

or what ever the button is called

cheers
Andy
0
 
LVL 7

Author Comment

by:EYoung
ID: 6362086
Yes, that is what I have been looking for.  Thanks to both of you.

I have another question that I am not getting far on.  Could you two look at it?  Thanks.  It is:

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20164266

Regards,
EYoung
0
 
LVL 6

Expert Comment

by:JonFish85
ID: 6362104
glad I could help!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
vb6 connector to SQL Server 2 37
Using an encrypted  value to decrypt and display contents in vb6 9 56
TT Auto Dashboard 13 95
Formula problem with Excel attachment 6 39
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…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

830 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