Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

How to disable buttons in a menu of a VB app

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 ??
1 Solution
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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.


Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now