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

BorderStyle not responding when using a TabbedMDIManager

Thread ID:

Created:

Updated:

Platform:

Replies:

50620 Oct 16,2006 10:20 AM UTC Oct 24,2006 10:52 PM UTC WinForms 5
loading
Tags: Tools
Luis Polanco
Asked On October 16, 2006 10:20 AM UTC

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!

Mano J [Syncfusion]
Replied On 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

Luis Polanco
Replied On 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.

Mano J [Syncfusion]
Replied On October 17, 2006 11:07 PM UTC

Hi,

Thanks for the update.

Best Regards,
Mano

Daniel Garcia
Replied On 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.

Purusothaman R [Syncfusion]
Replied On 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

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

;