Check out example codes for "how to align a form in the center c# forms". It will help you in understanding the concepts better.

Code Example 1

protected void CenterToScreen ();

Learn ReactJs, React Native from akashmittal.com