Solved

How disable or remove a menu option at run time?

Posted on 2001-08-07
4
152 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…
Suggested Courses
Course of the Month6 days, 8 hours left to enroll

636 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