Hii,
I have created a form.I open the form on the click event of a button.I want to open the form in the centre of the form on which the button is placed.Ne suggestions how to do it.
Following is wat i have implemented.
public
{
........etc
}
In other application i have a button on whose click event i reate a new instance of above form.Her is the code.
Form frmselParam = new FormSelectParameters();
frmselParam.Visible =
//Tried the below line.Gives an exception saying Top level controls cannot be added.
frmselParam.Parent=this;
I want to open the form at the centre of the form which is having
btnSelectParameters.