By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,124 Members | 2,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,124 IT Pros & Developers. It's quick & easy.

Disable Right Click

P: 7
I have this code that disables all menus and toolbars including the right click functions.

Dim i As Integer
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = False
Next i

How can i amplement the disable right click with out disbling menus.

Further, if i use the above code, any of my custom menu bars are not available. how can i disable all menubars exept my own custom menu bars ?
Oct 12 '06 #1
Share this Question
Share on Google+
1 Reply

P: 7
Ok, Managed to use this :

Forms!frm_Welcome.ShortcutMenu = False

But now i need to know how to set this for all forms when the application opens.

Right now i have to place this code in all the forms on load event.

how can i check what forms are available and then have this event set for all forms ?
Oct 12 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.