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

ContextMenu problem in MDI

P: n/a
I have a contextMenu in MDIparent form, but why it also show up in my
MDIchild form as well.
how to get rid of it?
thanks
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
pei_world, how did you create your ContextMenu and assign it to the parent
form? Does it show up in all areas of teh child? Could you post code which
demonstrates the problem you are having.

--
Greg Ewing [MVP]
http://www.citidc.com

"pei_world" <pe*******@hotmail.com> wrote in message
news:Ot**************@TK2MSFTNGP09.phx.gbl...
I have a contextMenu in MDIparent form, but why it also show up in my
MDIchild form as well.
how to get rid of it?
thanks

Nov 15 '05 #2

P: n/a
I set up the contextMenu in property window,
and it come up in every childforms that is contained in the parent

in childform
public <constructor-name>(myParentForm parent)
{
this.MDIparent = parent;
}
in parent form myParentForm.ChildForm newForm = ChildForm(this);
newForm.Show();

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.