static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainScreen());
}
This is my main that creates and runs the main screen, I have tried using:
- Form.StartPosition = CenterScreen/ CenterParent
- Manually changing the form location in the constructor.
- I have even tried creating the form separately then changing its StartPosition and later calling it in the Application.Run().
Non of these have worked, it just keeps showing on the left top corner of the screen. Any ideas on how to center the form?
Aucun commentaire:
Enregistrer un commentaire