Visual Basic - CENTRAR FORMULARIO EN MDIFORM

Life is soft - evento anual de software empresarial
 
Vista:

CENTRAR FORMULARIO EN MDIFORM

Publicado por w_rene (25 intervenciones) el 29/07/2002 05:57:14
holas..
tengo una aplicacion que inicia en un mdiform, necesito que cuando termine de iniciar, cargue un formulario mdiChild centrado dentro de el mdiform... como hago esto..???
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 FORMULARIO EN MDIFORM

Publicado por Fer (66 intervenciones) el 29/07/2002 10:51:07
Prueba con esto:

Public Sub Centrar(Form As Form)

Form.Top = (MDIForm1.ScaleHeight - Form.Height) / 2
Form.Left = (MDIForm1.ScaleWidth - Form.Width) / 2

End Sub
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