|
-
Jul 18th, 2005, 11:59 AM
#1
Thread Starter
PowerPoster
disabling menus programatically
whats the best way to disable alll menu items on a form programaticallly? is there a collection to loop through?
Thanks in advance.
-
Jul 18th, 2005, 12:08 PM
#2
Re: disabling menus programatically
VB Code:
Dim mnu As Control
For Each mnu In Me.Controls
If TypeOf mnu Is Menu Then
mnu.Enabled = False
End If
Next
-
Jul 18th, 2005, 12:12 PM
#3
Re: disabling menus programatically
Hack, you beat me to it. I was about to post the exact same code.
"It's cold gin time again ..."
Check out my website here.
-
Jul 18th, 2005, 12:16 PM
#4
Thread Starter
PowerPoster
Re: disabling menus programatically
-
Jul 18th, 2005, 12:17 PM
#5
Re: disabling menus programatically
 Originally Posted by BruceG
Hack, you beat me to it. I was about to post the exact same code.
Me too! I just pressed that F5 button on time.
Pradeep
-
Jul 18th, 2005, 12:43 PM
#6
Re: disabling menus programatically
Just call me "Thunder Fingers"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|