Question MDI Child & Tab Control

jackgreat

Active member
Joined
Apr 17, 2006
Messages
35
Programming Experience
1-3
Hi Guys,

I have a program developed in VB.NET (2008) which consists of a MDI form and several child forms. It worked like a normal mdi application whereby mdi form acted like a container for child forms and things worked out okay. Code like Me.Mdichildren or Me.ActiveMdiChild etc could be used to get list of child forms etc.

Now what happened is I needed to implement a tabbed system. There will be multiple tabs and forms would be in those tabs. So I added a Tab control in mdi form and now new forms are added to selected tab page(s). This way muliple tab pages can host forms and there is no need to see all childforms at once.

But a problem has come up. I do make my mdi form as parent form as before but then I say TabPage1.Controls.Add(ChildForm).

Doing so functions like list of mdi children or me.activemdichild or auto arrange options like Cascade,Tile Horizontal, Vetical etc are not working. This will be a major problem for me.

Please advice what should I do inorder to solve this problem ?

Thank you,

Cheers,
Jack
 
Back
Top