Visual Basic - Centrar form, en estado normal y mdichild

Life is soft - evento anual de software empresarial
 
Vista:

Centrar form, en estado normal y mdichild

Publicado por Larisa (43 intervenciones) el 01/02/2005 15:29:48
HOLA A TODOS:

QUISIERA QUE ME AYUDARAN CON UN PROBLEMITA.

RESULTA QUE TENGO UN FORM EN WINDOWS STATE EN NORMAL Y CON EL MDICHILD EN TRUE, EL BOTON MAXIMIZAR EN FALSE.

COMO SABEN ESTO ES PARA QUE LA VENTANA NO ESTE MAXIMIZADA Y NO SE SALGA DEL FORMULARIO MADRE, TODO FUNCIONA BIEN, PERO QUISIERA CENTRAR EL FORM Y NO ES POSIBLE YA QUE CUANDO EJECUTO EL FORM SE QUEDA EN EL LADO LATERAL IZQUIERDO.

INTENTO CON EL STARUPPOSITION Y SOLO ME DEJA ESCOJER EL MODO MANUAL EN LOS DEMAS NO ES POSIBLE.

AGRADECERIA DE ANTEMANO SU AYUDA

GRACIAS

LARISA
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Centrar form, en estado normal y mdichild

Publicado por Pedro Luis (878 intervenciones) el 01/02/2005 17:31:57
Esto es lo que uso para centrar el formulario, si sustituyes Screen por el formulario padre igual hasta funciona

Function Centrar(Formulario)
Formulario.Move (Screen.Width - Formulario.Width) / 2, _
(Screen.Height - Formulario.Height) / 2
End Function
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar