473,509 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The MenuBar

Hi

I have this program (msaccess04) where I want to disable the menubar
when the license key is not correct. I.e I want to gray out all the
items in the menu, it would look better than not showing the menu at
all, which is what I do now.

So I'm looking for some kind of property like me.menubar.grayout =
true ? :)

Vegard
Nov 12 '05 #1
1 1600
"Vegard Villmones" <vv******@c2i.net> wrote in message
news:b5**************************@posting.google.c om...
Hi

I have this program (msaccess04) where I want to disable the menubar
when the license key is not correct. I.e I want to gray out all the
items in the menu, it would look better than not showing the menu at
all, which is what I do now.

So I'm looking for some kind of property like me.menubar.grayout =
true ? :)

I think you need to disable the individual menu items.

Sub disableMenu(strMenu As String)

Dim cbr As Object
Dim ctl As Object

Set cbr = Application.CommandBars(strMenu)
For Each ctl In cbr.Controls
ctl.Enabled = False
Next ctl
Set ctl = Nothing
Set cbr = Nothing
End Sub
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5927
by: Itay L. | last post by:
Dear all, I am trying to figure out how to change the background color of my menubar under Windows. I've tried the following: from Tkinter import * root = Tk()
15
65727
by: Code Monkee | last post by:
How can the toolbar and menubar be hidden in IE? When opening the window via javascript I can specify 'toolbar=no,menubar=no', which works fine. However if the window already exists how can I...
5
8529
by: jeff | last post by:
Hello, I am coding a web application to be used on an internal Intranet. I have already coded a menubar for the application using DHTML. I want to get rid of the standard menubar in Mozilla...
0
1198
by: Thorben | last post by:
Hello, the Menubar of my Visual Studio .Net installation is hidden. I only see the toolbars. In the customize dialog all toolbars are selectable. Only the menubar entry could not be selected (i...
1
8098
by: Bill Short | last post by:
Hello World, I have a form with two custom menubars. One is for when a certain person logs in and the other is for all other users. To get these to only come up when they are supposed to I...
1
2365
by: Filips Benoit | last post by:
Dear All, How can I hide menubars for all forms? Filip
1
1548
by: Richard Hollenbeck | last post by:
I'm building custom menubars for my application--a different one for each form. When I right-click on a menubar and select Customize and click on the toolbars tab, the menubar called "Menu Bar"...
0
1062
by: Mohit Vora via .NET 247 | last post by:
When I load a child form inside an MDI parent, the menubar of the parent covers the child somehow. The MDI parent is set to FormWindowState.Normal and has MaximizeBox, MinimizeBox and ControlBox...
2
1464
by: A.J. Pool | last post by:
I have a form with a main menubar containing a number of menu options. In the empty right half of the menubar I want to place a combobox where users can make some sort of selection. However, when...
1
1617
by: ollyculverhouse | last post by:
Hi, I have a custom menubar which lets users jump to useful forms in my database. For example if I first open a form called 'Add Individual' then another called 'Add Firm', if i try opening...
0
7233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7342
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.