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. Image for the cookie policy date
close icon

How to set Tabs size (width ) in the Sync fusion using c#

hi Viewer,

i am trying to set width of tabbed mdi manager in windows please help me 



thanks in Advance


3 Replies

SK Senthil Kumaran Rajan Syncfusion Team June 27, 2014 12:37 PM UTC

Hi Venkaiah,

Thanks for using Syncfusion product,
 
Wed have forwarded the query to our development team for further analysis regarding the query "setting the group width in the TabbedMDIManager". We will get back to you with the analyzed details before the end of July 01, 2014.

Please let us know if you have any concern,

Regards,
R.Senthil kumaran


SK Senthil Kumaran Rajan Syncfusion Team July 1, 2014 12:48 PM UTC

Hi Venkaiah,

Thanks for your patience, 

We are sorry to let you know that, in TabbedMDIManager each TabGroup size will be calculated and assigned in default based on its parent form size and space availability, not based on user defined size settings.

Please let us know if you need any future assistance,

Regards,
R.Senthil kumaran


ST Saravanan T Syncfusion Team November 7, 2014 06:36 AM UTC

Hi Venkaiah,

 

Sorry for the inconvenience caused,

 

We would like to let you that the width of the tabs in TabbedMDIManager can be set by handling TabControlAdded event. We have used the TabControl ItemSize property to set the height/width of the tabs. Please have the below code snippet for your reference.

 

Code Snippet [C#]:

 

tabbedMDIManager.TabControlAdded += new TabbedMDITabControlEventHandler(this.tabbedMDIManager_TabControlAdded);

 

private void tabbedMDIManager_TabControlAdded(object sender, Syncfusion.Windows.Forms.Tools.TabbedMDITabControlEventArgs args)

{

    args.TabControl.SizeMode = Syncfusion.Windows.Forms.Tools.TabSizeMode.Fixed;

    args.TabControl.ItemSize = new Size(120, 45);

}

 

We have also prepared a sample to achieve your requirement and it can be downloaded from the following link.

 

Link: http://www.syncfusion.com/downloads/support/directtrac/131722/Tabbed_MDI_Demo330737134.zip

 

Note: The width of the tabs can be set by setting TabSizeMode is Fixed.

 

Please let us know if you need any further assistance or if we have misunderstood your query,

 

Regards,

Saravanan T


Loader.
Live Chat Icon For mobile
Up arrow icon