public partial class FrmMain : Telerik.WinControls.UI.RadForm
{
DocumentContainer documentContainer = new DocumentContainer();
public FrmMain()
{
InitializeComponent();
this.IsMdiContainer = true;
this.radDock1.AutoDetectMdiChildren = true;
this.radDock1.MainDocumentContainer = documentContainer;
}
private void radButton1_Click(object sender, EventArgs e)
{
FrmLogin frm1 = new FrmLogin();
frm1.MdiParent = this;
frm1.Show();
this.ActiveControl = frm1;
}
private void radButton2_Click(object sender, EventArgs e)
{
RadForm2 frm2 = new RadForm2();
frm2.MdiParent = this;
frm2.WindowState = FormWindowState.Maximized;
frm2.Show();
this.ActiveControl = frm2;
}
{
DocumentContainer documentContainer = new DocumentContainer();
public FrmMain()
{
InitializeComponent();
this.IsMdiContainer = true;
this.radDock1.AutoDetectMdiChildren = true;
this.radDock1.MainDocumentContainer = documentContainer;
}
private void radButton1_Click(object sender, EventArgs e)
{
FrmLogin frm1 = new FrmLogin();
frm1.MdiParent = this;
frm1.Show();
this.ActiveControl = frm1;
}
private void radButton2_Click(object sender, EventArgs e)
{
RadForm2 frm2 = new RadForm2();
frm2.MdiParent = this;
frm2.WindowState = FormWindowState.Maximized;
frm2.Show();
this.ActiveControl = frm2;
}