?
Solved

How to disable buttons in a menu of a VB app

Posted on 2003-02-20
1
Medium Priority
?
137 Views
Last Modified: 2010-05-01
This is the problem.
I have a VB app which has a few menus like View, Tools etc.
I want to disable a few buttons in those menus. How do i do that?
Also How can I disable the corresponding icons on the toolbar like "new" "open" etc..

Can somebody help me out ??
0
Comment
Question by:raghavphil
[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
1 Comment
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 60 total points
ID: 7986374
Use the property "Enabled" of the menu and toolbar buttons.
YourMenu.Enabled = false

Now, if you have the same functionality at several places, you should create a central place where you can enable or disable a functionality (ie 1 sub), so you "enable/disable" the copy operation, which will enable/disable ALL the menu/buttons etc that would start the copy.

CHeers
0

Featured Post

Technology Partners: 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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

771 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