I create a new form and call from the parent form as follows:
loginForm = new SubLogin(); loginForm.Show();
I need to display the chi
The parent probably isn't yet set when you are trying to access it.
Try this:
loginForm = new SubLogin(); loginForm.Show(this); loginForm.CenterToParent()