Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - TabControl inside an MDI Child Window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabControl inside an MDI Child Window

 Post Reply Post Reply
Author
Message
djheath View Drop Down
Newbie
Newbie


Joined: 09 September 2005
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote djheath Quote  Post ReplyReply Direct Link To This Post Topic: TabControl inside an MDI Child Window
    Posted: 09 September 2005 at 4:30pm
So I have the need to create a Tabbed MDI child window and see that there is a problem when the form that is associated with each tab has the docking property set to 'Fill'.

Essentially, the docking property really thinks it means 'fill' and as such the tabs are no longer available (the form is filling the entire MDI child window.)

I'm working in C# and below is my code:

private void formDocument_Load(object sender, System.EventArgs e) {
     affinityRun = new formDataRun();
     affinityRun.Parent = TabControl;
     affinityRun.Dock = System.Windows.Forms.DockStyle.Fill;
     Object x = TabControl.InsertItem(0, "Affinity", affinityRun.Handle.ToInt32(), 300);

     desaltingRun = new formDataRun();
     desaltingRun.Dock = System.Windows.Forms.DockStyle.Fill;
     TabControl.InsertItem(1, "Desalting", desaltingRun.Handle.ToInt32(), 300);

     TabControl.Icons = (XtremeSuiteControls.ImageManagerIcons)ImageManager.Icons;
     TabControl.PaintManager.Positi on = XtremeSuiteControls.XTPTabPosition.xtpTabPositionLeft;
     TabControl.PaintManager.Layout = XtremeSuiteControls.XTPTabLayoutStyle.xtpTabLayoutFixed;
}

the formDataRun is a simple Windows Form with an inner panel (the contents of which have been determined to be immaterial, through some testing.)

Everything looks okay if I remove the dock assignment, but it'll look pretty silly if the user maximizes the window and the inner panel stays the same size.

Anyone else run into this situation? Thanks in advance,

-djh
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.152 seconds.