Acoplar un formulario a la resolución de la pantalla
Publicado por Miguel (281 intervenciones) el 16/10/2019 23:06:48
Estoy probando con este código que he hecho y haciendo en el formulario el Anchor : Top, Left y Bottom me desplaza un textBox que tengo al final y no se muestra. Y si no utilizo el Anchor con el Bottom entonces el datagridview no se me agranda y si muestra el textBox.
Este es el código:
Me puede decir que es lo que me falta para que funcione bien.
Muchas gracias
Este es el código:
1
2
3
4
5
6
7
8
9
10
Dim F As New FrmClientes
F.Size = New System.Drawing.Size(CInt(pantalla.Bounds.Width.ToString()),
CInt(pantalla.Bounds.Height.ToString()))
If F.Size.Width = 1280 And F.Size.Height = 1024 Then
Me.MaximumSize = New System.Drawing.Size(1280, 1024)
ElseIf F.Size.Width = 1280 And F.Size.Height = 800 Then
Me.MaximumSize = New System.Drawing.Size(1280, 800)
End If
Me.Location = Screen.PrimaryScreen.WorkingArea.Location
Me.Size = Screen.PrimaryScreen.WorkingArea.Size
Me puede decir que es lo que me falta para que funcione bien.
Muchas gracias
Valora esta pregunta


0