المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Changing tabbed form over to tiled



C# Programming
02-26-2013, 08:43 AM
I have a tabbed form and I'm trying to switch it over to tiled. It looks like this:

TabPage newPage = new TabPage(string.Format("{0}:{1}", cb1.cbInfos[i].usbHandle, cb1.cbInfos[i].boxID)); InitializeControls(controls[i]); tabCtrlMain.Size = (controls[i].Size); tabCtrlMain.Width += 20; tabCtrlMain.Height += 100; this.Width = tabCtrlMain.Width + 20; this.Height = tabCtrlMain.Height + 50; newPage.Controls.Add(controls[i]); tabCtrlMain.TabPages.Add(newPage);
I saw this example, http://sharpertutorials.com/multiple-document-interface-mdi/[^ (http://sharpertutorials.com/multiple-document-interface-mdi/)], but this looks different because they are changing where it refers to Run new Form to Run new Mdi
example:
Application.Run(new Form1());to Application.Run(new MDIParent1());
but I'm not seeing where I have that sort of thing to switch over. Does anyone have any ideas how to switch over to tiled from tabbed? I'm fine with the contents of my controls[i] containing the correct information. The tabbed forms look fine. We decided to change the look because we think it will work better with this application. Thanks!