In WPF add these attributes to your Window element:
WindowStartupLocation="CenterScreen" WindowState="Maximized"
In WinForms, put this in the constructor AFTER the call to InitializeComponent()
this.WindowState = FormWindowState.Maximized;
BTW, these are easily discovered with even the most rudimentary of google searches.
Updated 22-Jul-19 9:20am
v2
Please clarify if this is about WinForms.
There is no "magic bullet" that will guarantee your Form, and the Controls in it, will look the same on every type of device of whatever screen size and resolution.
WPF, in which all UI elements are vector based, will, in theory, give you a Form that looks the same at any scale.
In practice, Fonts, even though they are based on vectors, are "hinted" internally: when rendered at certain sizes, they will appear slightly different. That's done for readability at the "standard" sizes (less than 14~18 points) most apps use for text.
... in WinForms
Make use of setting the Form MinimumSize and MaximumSize Prop(rties to constrain the sizes which the user can resize the Form to by direct action (dragging) at run-time.
In WinForms, the key thing you can do is to make careful use of ContainerControls with their Docking properties set, and, for the Controls inside these ContainerControls, use the Dock, or Anchor, Properties to control what happens when the Form is resized.
For ContainerControls, you can affect internal appearance (visible margin) by setting the Padding Property; with undocked Controls, setting Margin Property can affect their spatial relation-to/separation-from other Controls.
You can experiment with WinForm AutoScale, AutoScaleMode, and Autosize properties, as well as StartPosition.
Of course, you can also set WindowState: I recommend you only use WindowState.Maximized when you are certain you want to fill the user's entire screen. Do you really want to hide any Toolbars the user has set to stay open ?
Finally, the TableLayoutPanel, and FlowLayoutPanel, are complex and powerful layout design ContainerControls ]: it will take some effort to learn how to use them. imho, well worth investing in learning to use them.
Updated 22-Jul-19 17:55pm
v4