|
-
February 25th, 2003, 06:02 AM
#1
Help with poup menu on mdi applications...
Morning all,
Im working on an mdi application which consists of a form, FormA, and an mdi form, MDIForm. The MDIForm has a menu added to it with standard options e.g. File, Edit, View, etc... FormA also has a menu added to it which has two entries Add and Delete. The FormA menu is hidden at runtime as it will be used as a popup menu.
When you click the right mouse button on FormA a popup box opens showing the two options from the FormA menu (Add and Delete).
If I set FormA as an mdichild form then the menu on MDIForm is hidden at runtime as well as the FormA menu. If I don't set FormA as an mdichild form then only the menu on FormA is hidden at runtime.
The problem is that I need to set FormA as an mdichild form as I have options on the MDIForm menu which manipulate fields on FormA.
Can anyone tell me how I can set FormA as an mdichild form and hide the menu on FormA without hidding the menu on the MDIForm?
Any help would be most appreciated...
Thanks in advance,
B.
-
February 25th, 2003, 07:11 AM
#2
Try this
Create the menu on the MDI-Form (and hide it...) and call that one from the MDI-Child.
VB6 SP5 ACCESS MSSQL mySQL CR
-
February 25th, 2003, 08:02 AM
#3
I tried that and it appeared to work as I wanted it to, with one exception... When I clicked the Add option from the popup menu it created a new FormA with the new info. on it instead of adding the new info. to the existing FormA.
Any ideas why that is happening or how to solve it???
B.
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
|