public Form2() { InitializeComponent(); DefaultManager di1 = new DefaultManager(); di1.Dock = DockStyle.Fill; xtraScrollableControl1.Controls.Add(di1); }
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { foreach (Control ctrl in xtraScrollableControl1.Controls) { ctrl.Dispose(); } DefaultManager di1 = new DefaultManager(); di1.Dock = DockStyle.Fill; xtraScrollableControl1.Controls.Add(di1); }