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

BorderStyle not responding when using a TabbedMDIManager

Hi there,
Using syncfusion 4.302.0.30 I'm trying to show all the MDITabPanels managed by a TabbedMDIManager with a 'None' BorderStyle but the control seems not to be responding. I want them to seem flat controls but I can't. It always seems to be sunken into the parent MDI.

I'm using the next code in order to make it works:

void _TabbedMDIManager_TabControlAdding ( object sender, TabbedMDITabControlEventArgs args )
{
args.TabControl = new MDITabPanel ( this._TabbedMDIManager );
args.TabControl.TabStyle = typeof ( Syncfusion.Windows.Forms.Tools.TabRendererOffice2003 );
args.TabControl.Alignment = TabAlignment.Bottom;
args.TabControl.BorderStyle = BorderStyle.None;
}

And...

private void TabControl_ControlAdded ( object sender, ControlEventArgs e )
{
if ( e.Control is TabPageAdv )
{
(( TabPageAdv ) e.Control ).BorderStyle = BorderStyle.None;
}

Could someone please tell me what I'm doing wrong?

Thank's in advance!

5 Replies

MJ Mano J Syncfusion Team October 16, 2006 11:09 AM UTC

Hi,

You should use TabbedMDIManager.TabControlAdded event instead of TabbedMDIManager.TabControlAdding events.

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

private void tabbedMDIManager_TabControlAdded(object sender, TabbedMDITabControlEventArgs e)
{
e.TabControl.TabStyle = typeof ( Syncfusion.Windows.Forms.Tools.TabRendererOffice2003 );
e.TabControl.Alignment = TabAlignment.Bottom;
e.TabControl.BorderStyle = BorderStyle.None;
}

Please let me know if this works for you. Thanks for using Essential Tools.

Regards,
Mano


LP Luis Polanco October 16, 2006 11:54 AM UTC

Hi there again,

I've found my bordered style window. It was the MdiClient attached to my MDI main window the one who was drawing a BorderStyle.Fixed3D border not the tabbed windows. In order to solve it, I've searched the MdiClient and I've changed its border style to none and now it's working fine!

Thank's anyway for your quick response.


MJ Mano J Syncfusion Team October 17, 2006 11:07 PM UTC

Hi,

Thanks for the update.

Best Regards,
Mano


DG Daniel Garcia October 24, 2006 05:42 AM UTC

I'm not sure if I understand this....

System.Windows.Forms.Form doesn't have a MdiClient member, so what do you mean by "MdiClient attached to my MDI main window".

Also MdiClient doesn't have a BorderStyle member. Am I missing something ?

Daniel.


PR Purusothaman R Syncfusion Team October 24, 2006 10:52 PM UTC

Hi Daniel,

This issue is not related with Syncfusion TabbedMDI Manager.

By the design of .NET framework, MdiClient doesn't have a BorderStyle member.

Thanks for using Syncfusion Products.

Best Regards,
Purusothaman.R

Loader.
Live Chat Icon For mobile
Up arrow icon