We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TabbedMDI not functioning properly with XPMenus?

Thread ID:

Created:

Updated:

Platform:

Replies:

19497 Sep 27,2004 11:21 PM UTC Sep 30,2004 05:14 PM UTC WinForms 2
loading
Tags: Tools
Lance Koh
Asked On September 27, 2004 11:21 PM UTC

i tried creating 2 forms, form1 is a mdicontainer, with the appropriate codes to set up tabbedmdi in it. a mainmenuitem will open the mdi child (form2). with this simple setup, i am able to get the tabbedmdi to work without a problem. however, when i apply the same piece of code on another form, which contain xpmenus (office2003 style), somehow the tabbedmdi are not showing up. is there any setting that i need to apply to get tabbedmdi to work with xpmenus? thanks and regards.

Lance Koh
Replied On September 28, 2004 03:17 AM UTC

i figured out what was wrong. the maximized window state was the culprit. however, now i am facing another issue. that is when i open 3 mdi childs, 1 of the mdi childs have validating textboxes. when this child is activated, and the error provider is raising an error, moving to another mdi child will not allow me to enter any data in the 2nd child. closing the first child (the one with error provider) will enable me to work on the 2nd child again. any idea how to get around this? thanks and regards

Administrator [Syncfusion]
Replied On September 30, 2004 05:14 PM UTC

Hi Lance, This is a known issue in the .NET framework. For now, you could use the following workaround : 1. Handle the TabbedMDIManager''s TabControlAdded event and get the TabControlAdv associated with it manager.TabControlAdded += new TabbedMDITabControlEventHandler(manager_TabControlAdded); private void manager_TabControlAdded(object sender, TabbedMDITabControlEventArgs e) { this.tabcontrol = e.TabControl; this.tabcontrol.SelectedIndexChanging +=new SelectedIndexChangingEventHandler(tabcontrol_SelectedIndexChanging); } 2. Handle the SelectedIndexChanging event of this TabControlAdv and cancel the new tab selection if the entry in the present tab is invalid private void tabcontrol_SelectedIndexChanging(object sender, SelectedIndexChangingEventArgs e) { if (form1.TextBoxText != "test") { if (form_loaded) MessageBox.Show("Invalid Entry!"); e.Cancel = true; } } Please refer to the test sample attached that illustrates this, and let me know if this works for you. Regards, Guru Patwal Syncfusion, Inc.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;