Is there a way to Open a Form in a specific location every time it is opened. I have this code under initialize and the form opens the proper size. How would I say open at positio
UD40Form.Width = 1600;
UD40Form.Height = 900;n 0, 0 for x and y?
Try this:
UD40Form.StartPosition = FormStartPosition.Manual;
UD40Form.Location = new Point(x,y);
var x = 0;
var y = 0;
UD40Form.StartPosition = FormStartPosition.Manual;
UD40Form.Location = new Point(x,y);
That works! Thanks
Why are you setting it to 0 with such large Height and Width. Looks like you want it to occupy the entire monitor?
Perhaps:
UD40.WindowState = System.Windows.Forms.FormWindowState.Maximized;
2 Likes