Move your popup menu to a third (non-MDIChild) form -- frmPopup -- and
rename frmTrouble to frmGoodGuy. To put up the popup, just code
frmPopup.PopupMenuRoot.Visible = True
PopupMenu frmPopup.PopupMenuRoot
in the event where you're putting up the popup menu. To communicate the
popup menu selection back to frmGoodGuy, create a global integer in a
module, have frmPopup's menu click event set it to a value that represents a
particular menu option, then code a handler routine in frmGoodGuy with a
case structure to handle every possible menu option value. You can call the
handler right after the PopupMenu instruction.
Pete
-----Original Message-----
From: Alstom [mailto:Alstom@v...]
Sent: Wednesday, February 19, 2003 4:55 AM
To: professional vb
Subject: [pro_vb] Menu woes
Dear Members of the List,
OK here's the scenario : I have a MDI Form containing a few menu items. One
of the menu items load a form (MDI child - let's call it frmTrouble) which
in turn also contains some menu items. frmTrouble's root menu items' Visible
property is set to False (I use this menu as a popup menu on frmTrouble).
My problem is this - whenever frmTrouble is loaded, its menu items replace
the menu items of its parent MDI form. Can spmeone please suggest a way to
prevent this from happening?
Much obliged,
Brad.
DISCLAIMER : Volkswagen of South Africa (Pty) Ltd
Any views expressed in this message are those of the individual sender.
No liability shall attach whatsoever to VWSA from this communication except
where the sender is acting on specific authority of VWSA, such authority
being public record and acknowledged by VWSA by nature of the employee's
functions. This document may in no way be photocopied, printed, scanned or
electronically duplicated for any purposes other than that for which it was
originally
intended.
If you are not the intended recipient of this communication, please discard
this message and notify VWSA immediately at postmaster@v...