473,396 Members | 1,724 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,396 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 1684
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.