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

disable TabbedMDIManager

Thread ID:

Created:

Updated:

Platform:

Replies:

13023 Apr 19,2004 09:02 AM UTC Apr 20,2004 03:59 PM UTC WinForms 4
loading
Tags: Tools
Chris Soulsby
Asked On April 19, 2004 09:02 AM UTC

Can someone tell me how to stop a user from changing tabs in a TabbedMDIManager. Thanks Chris

simon
Replied On April 19, 2004 10:58 PM UTC

you could maybe check the Activating event for the window and then .Activate() the previous window. You''d have to store somewhere which window was ''current'' and this could be kinda clumsy especially if you close windows. There may or may not be a more elegant way of doing this and even if this is the only way you may get an unpleasant flicker. -simon

Chris Soulsby
Replied On April 20, 2004 06:48 AM UTC

Is there any way of using the MDITabPanel to stop this from happening? I’ve looked at the methods and there’s nothing that stands out. You get access to it by: MDITabPanel tp = this.tabbedMDIManager.TabGroupHosts[0].MDITabPanel

Chris Soulsby
Replied On April 20, 2004 07:22 AM UTC

I''ve worked it out :-), you need to use the enabled property on the MDITabPanel control. This is done as follows: if(this.tabbedMDIManager.TabGroupHosts.Length > 0) { MDITabPanel tp = this.tabbedMDIManager.TabGroupHosts[0].MDITabPanel; tp.Enabled = !tp.Enabled; } When the control is disabled then the user will not be able to change tabs. Thanks Chris

Administrator [Syncfusion]
Replied On April 20, 2004 03:59 PM UTC

Hi Chris, Thanks for sharing this information with us. We appreciate your continued interest in Syncfusion products. 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

;