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

MDI Deactivate

Thread ID:





47319 Aug 2,2006 05:15 PM UTC Aug 2,2006 06:56 PM UTC General Discussion 1
Tags: General Discussion
Administrator [Syncfusion]
Asked On August 2, 2006 05:15 PM UTC

I would like to prompt the user to save before switching from one tab to another in my application. The Deactivate() function fires too late. Is there something that can be done to achieve similar functionality to the Closing() function, but when the user switches tabs?

Mano J [Syncfusion]
Replied On August 2, 2006 06:56 PM UTC


I suppose you are using TabbedMDIManager in your application. You can use the cancellable SelectedIndexChanging event of internal tabControlAdv used in tabbedMDIManager for this purpose.

tabbedMDIManager.TabControlAdded += new TabbedMDITabControlEventHandler(tabbedMDIManager_TabControlAdded);

private void tabbedMDIManager_TabControlAdded(object sender, TabbedMDITabControlEventArgs args)
args.TabControl.SelectedIndexChanging += new SelectedIndexChangingEventHandler(TabControl_SelectedIndexChanging);

private void TabControl_SelectedIndexChanging(object sender, SelectedIndexChangingEventArgs args)
// Check whether the selected tab needs to be saved here.

Please let me know if this meets your requirements.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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