Rahul Krishnan R
Friday, March 23, 2012
How to load a windows form from another windows form as a modal dialog box and put the child form in the center of the parent form?
private void Form1_Load(object sender, EventArgs e)
{
Form2 form2 = new Form2();
form2 .StartPosition = FormStartPosition.CenterParent;
form2.ShowDialog();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment