First of all NO I'm talking about making the form WindowsForms
to mode responsive
. My main form is designed with a resolution of 1340
x 760
with these properties established in the following way:
-
FormBorderStyle = FixedSingle.
-
StartPosition = CenterScreen.
-
WindowState = Maximized.
The laptop has a resolution of 1366
x 768
.
Although the form is positioned showing the Barra de tareas
, the form does not change size according to the screen resolution and the bottom of my form is hidden or cut .
My form contains two panels, one side and one that completes the size of the form. I created this function to adapt the form to the work area of the screen:
public void adaptarFormulario(Form formulario)
{
formulario.Location = Screen.PrimaryScreen.WorkingArea.Location;
formulario.Size = Screen.PrimaryScreen.WorkingArea.Size;
}
In FormLoad
:
adaptarFormulario(this);
The Form is displayed as follows:
To show you the part you are hiding, I moved the
Barra de Tareas
to the Right Side of the screen.
Not shown full, this Cutting / Hiding this:
How can I solve this problem?
Environment: Visual Studio 2010 C #, & .NET NetFramework 4.