I've a WinForm that contains Navigation menu that display UserControls. Now everything works fine except the form freezes when I try to open a Devexpress UserControl from another UserControl.
Here is the code I used:
private void btnOpenUserControl2_Click(object sender, EventArgs e)
{
UserControl2 uc2 = new UserControl2(ID);
this.Parent.Controls.Add(uc2);
uc2.Dock = DockStyle.Fill;
this.Hide();
uc2.Show();
}
What could be the possible reason?