How to change the context menu in the Tabbed MDI for forms?
Hi,
I wish to add custom items to the child form's context menu. At the moment we only have "Close" option in the context menu which can be enabled/disabled by setting child form’s control box property.
Is there a way to add custom option to this context menu?
Best regards
Luojia Yang
SIGN IN To post a reply.
5 Replies
EK
Eugene Kozlov
September 5, 2011 09:50 AM UTC
EK
Eugene Kozlov
September 5, 2011 09:51 AM UTC
IM
Iniyen M A
Syncfusion Team
September 5, 2011 11:21 AM UTC
Hi Luojia / Eugene,
Thanks for your interest in Syncfusion products.
You can achieve your requirement by using the TabbedMDIManager's ContextMenuItem AddRange() method, For more information i have included the sample as follows.
[Sample]
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TabbedMDISamp-523518568.zip
Please have a look on the above sample and let us know if you need further assistance.
Regards,
Iniyen M.A.
Thanks for your interest in Syncfusion products.
You can achieve your requirement by using the TabbedMDIManager's ContextMenuItem AddRange() method, For more information i have included the sample as follows.
[Sample]
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TabbedMDISamp-523518568.zip
Please have a look on the above sample and let us know if you need further assistance.
Regards,
Iniyen M.A.
AD
Administrator
Syncfusion Team
September 6, 2011 05:10 PM UTC
Hi,
The described method works, however I also want to know how to add a event handler to the custom menu item?
Say I want to display a message box when click on the the newly added item in the example.
Thanks a lot.
The described method works, however I also want to know how to add a event handler to the custom menu item?
Say I want to display a message box when click on the the newly added item in the example.
Thanks a lot.
IM
Iniyen M A
Syncfusion Team
September 11, 2011 11:37 AM UTC
Hi Luojia,
Thanks for the update.
You can achieve your requirement by using the BarItems's Click Event. For more information in have included the Code snippet as follows.
[Code Snippet]
Please have a look on the following sample which holds the above code snippet and let us know if you need further assistance.
[Sample]
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TabbedMDISampMod-1566006682.zip
We are glad to help you out.
Regards,
Iniyen M.A.
Thanks for the update.
You can achieve your requirement by using the BarItems's Click Event. For more information in have included the Code snippet as follows.
[Code Snippet]
this.editItem.Click += new EventHandler(editItem_Click);
void editItem_Click(object sender, EventArgs e)
{
MessageBox.Show("Edit Menu Item Clicked !");
}
Please have a look on the following sample which holds the above code snippet and let us know if you need further assistance.
[Sample]
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TabbedMDISampMod-1566006682.zip
We are glad to help you out.
Regards,
Iniyen M.A.
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
AD Administrator
- Sep 2, 2011 05:06 PM UTC
- Sep 11, 2011 11:37 AM UTC