Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

enable/disable menus items in MDI window 1

Status
Not open for further replies.

ctlin

Technical User
Joined
Apr 17, 2002
Messages
77
Location
US
i have an MDI window with a menu. right now i have it set up so that several menu items are disabled. how do i make it so that i can enable these items from a call in another form. i have tried making a public sub in a module but it can't seem to reference the MDI menu object. can i make the menu public somehow? thanks.

----inside the module: -----
Public Sub showReviewOption()
cmdRvwNewProj.Enabled = True
End Sub
-----------------------------
 
Reference each menu item by the form object it is on and the name that you the menu item when you defined it.

frmMDI.mnuFile.Enabled = blnEnable
Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
ahh. so simple. so beautiful. thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top