Thank you for the links. I have managed to use this code wich seems to be correct.
So I set the width and height of the form to the same as the monitors width and height.
But when this code is running the Form is not centered, to Fill up the screen. Big parts of the Form is "outside" the screen view.
How is it possible to center the Form so it fills up the screen?
I think this will do it, that if the users screen is less in size than the form, then maximizing the Form will work I think.
Thank you for help.
//If the Form is bigger than the users screen, then maximize the window:
Screen^ screen = Screen::PrimaryScreen;
int S_width = screen->Bounds.Width;
int S_height = screen->Bounds.Height;
if( S_width > Form2::Width || S_height > Form2::Height )
Form2::WindowState = FormWindowState::Maximized;