How to: Create XtraTabControl at Runtime

The following sample code demonstrates how to create an XtraTabControl at runtime.

DevExpress.XtraTab.XtraTabControl tabCtrl = new DevExpress.XtraTab.XtraTabControl();
this.Controls.Add(tabCtrl);
tabCtrl.TabPages.Add("Page 1");
tabCtrl.TabPages.Add("Page 2");
tabCtrl.Dock = DockStyle.Fill;