473,383 Members | 1,837 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

ContextMenu problem in MDI forms

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?
Nov 15 '05 #1
4 1682
pei_world,

Are you saying that when you right-click on the child form, you get the
parent form's context menu? Can you show a sample of code that does this?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"pei_world" <pe*******@hotmail.com> wrote in message
news:eN**************@TK2MSFTNGP12.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?

Nov 15 '05 #2
yes, I have two form in parent and child containing relation
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:#f**************@TK2MSFTNGP09.phx.gbl...
pei_world,

Are you saying that when you right-click on the child form, you get the parent form's context menu? Can you show a sample of code that does this?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"pei_world" <pe*******@hotmail.com> wrote in message
news:eN**************@TK2MSFTNGP12.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?


Nov 15 '05 #3
pei_world,

Can you post the code that does this?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"pei_world" <pe*******@hotmail.com> wrote in message
news:uD**************@TK2MSFTNGP12.phx.gbl...
yes, I have two form in parent and child containing relation
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:#f**************@TK2MSFTNGP09.phx.gbl...
pei_world,

Are you saying that when you right-click on the child form, you get

the
parent form's context menu? Can you show a sample of code that does this?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"pei_world" <pe*******@hotmail.com> wrote in message
news:eN**************@TK2MSFTNGP12.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?



Nov 15 '05 #4
I have following code to show a child window
//===============================================
private void btnData_Click(object sender, System.EventArgs e)
{
//click to new a Database window
ServiceServer.Database formDatabase = new Database(this);
formDatabase.Show();
}
in child window
I have
//===============================================
public Database(ServiceServer.serviceServer parent)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

this.MdiParent = parent;
}

"pei_world" <pe*******@hotmail.com> wrote in message
news:eN**************@TK2MSFTNGP12.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?

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike Allen | last post by:
Hi Everyone, My problem concerns ContextMenus. It's easy enough to create one and apply it to a NotifyIcon. When it's compiled and run, it works beautifully. Right click and there you are. But I...
2
by: VR | last post by:
I have a form with a list view control, a button control and a main menu with menuDelete item. Any time I am handling a button click event or menuDelete click event I call DeleteItem() function...
0
by: Daniel K. | last post by:
I've got a form with a usercontrol and a contextmenu for it. I put everything together in the VS form designer. the codesnipped below is from that dialog. The problem: Before i added the...
2
by: Derrick | last post by:
I've been working on an application which has a NotifyIcon (system tray icon), and a corresponding ContextMenu. I want to be able to update this menu dynamically. However, when I make changes to...
2
by: Zieben | last post by:
Hello! I have such problem! I have my UserControl. I override property ContextMenu for this Control as ..... new ContextMenu ContextMenu{ set {_contextMenu = value;}
7
by: **Developer** | last post by:
I have a usercontrol in which the IDE generated context menu statement is: Friend WithEvents ContextMenuThumbnails As System.Windows.Forms.ContextMenu I want to save the contents of it so I...
11
by: Graham Charles | last post by:
I'm writing a control inheriting from ComboBox, and I'd like to add an entry to the ContextMenu for that combo box. I have no problem if I create an entirely new ContextMenu from scratch, but I'd...
0
by: Terry Olsen | last post by:
I have the ContextMenu property for a ListBox set at design time. When I right-click the ListBox, the ContextMenu appears as it should. However, I do not want the ContextMenu to show when the user...
0
by: Ahmad Jalil Qarshi | last post by:
Hi! I have a NotifyIcon and a ContextMenu attached to it. What I want is to show the ContextMenu when the mouse pointer is over the NotifyIcon and hide the contextMenu when the Mouse pointer...
0
by: Steve Richter | last post by:
I cant get a contextmenu to popup in the context of a datagridview. It pops up in the ListBox, and in the form itself. But not the DataGridView. How could that be? here is my code: using...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.