I'm doing a program in visual studio, the problem I have is that I get the following error:
Unhandled exception of type System.ArgumentException in System.Windows.Forms.dll
Additional information: The form specified as MdiParent for This form is not an MdiContainer container.
this is the code I am using:
agregar_productos X = new agregar_productos();
X.MdiParent = this;
X.Show();
I'm using the same code in another project and it works well, what could I be doing wrong?