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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Close-button for a TabControlExt

Thread ID:

Created:

Updated:

Platform:

Replies:

3563 Mar 28,2003 05:12 AM UTC Mar 28,2003 12:33 PM UTC WinForms 2
loading
Tags: Tools
Administrator [Syncfusion]
Asked On March 28, 2003 05:12 AM UTC

Is it possible to have a Close-button at the upper right corner next to ScrollButtons? (Just like it's done in VS.NET and when using the TabbedMDIManager). Also, is there a way to have the ScrollButtons shown all the time, being disabled if there isn't enough tabs... Kenneth

Ramesh Praveen [Syncfusion]
Replied On March 28, 2003 12:32 PM UTC

Kenneth, You can make the scroll button visible all the time, by subclassing the TabControlExt and overriding this method, as follows: protected override void AdjustScrollButtonDimensions(ref RectangleF tabPanelBounds, bool scrollNeeded) { if(this.ScrollButtons == null && !this.Multiline) InitScrollButtons(); // Second arg should be true all the time. base.AdjustScrollButtonDimensions(ref tabPanelBounds, true); } We do not have built-in support for a close button in the tab control. I will make this a feature request. If you are interested, you can look at our custom tab control implementation used in our tabbed mdi layout in the file Tools\src\FrameworkComponents\TabbedMDI\MDITabPanel, to get some hints on how to implement this yourself. Regards, Praveen Ramesh

Ramesh Praveen [Syncfusion]
Replied On March 28, 2003 12:33 PM UTC

Another, approach is to simply place a button over the tab control at the right position. Regards, Praveen Ramesh

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

;