I am new in window application and I am not able to render another window form after saving data to database. here is my code I am opening the another window form
GameList gamelist = new GameList();// the form which I want to open
gamelist.MdiParent = new FrmAdmin();// FrmAdmin is main parent form
gamelist.WindowState = FormWindowState.Maximized;
gamelist.Show();
But I am getting this error message:
Form that was specified to be the MdiParent for this form is not an MdiContainer.
any help will be very thankful.