I am having a problem centering a winform on its parent...
I set the proeprty StartPosition to CenterParent
and then using this code ... it doesn't work... it gives me an error msg.
Test frmTest = new Test();
frmTest .Parent = this;
Error is : cannot add a top level control to a control
It is something to do with frmTest.Parent .... but i need to set the Parent
Any ideas, i know its something simple?
Thanks in advance