Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/06/2009, 09:24
Avatar de mdavila
mdavila
 
Fecha de Ingreso: julio-2007
Ubicación: Montevideo (Uruguay)
Mensajes: 919
Antigüedad: 16 años, 9 meses
Puntos: 13
Error en el heigth de un control....

Hola, quiero dar el efecto que abre un control de una forma mas linda......
El tema es que la propiedad Height de la lista siempre me queda en 0 por mas que aumente.

Es un error del VS o estoy haciendo algo mal?

Public Sub AbrirLista()
lstErrores.BringToFront()
lstErrores.Visible = True
lstErrores.Width = 0
lstErrores.Height = 0
Dim T As Boolean = False

While Not T
If lstErrores.Width <= 351 Then
lstErrores.Width = lstErrores.Width + 1
End If

If lstErrores.Height <= 503 Then
lstErrores.Height = lstErrores.Height + 1
End If

If lstErrores.Width = 352 And lstErrores.Height = 504 Then
T = True
Else
System.Threading.Thread.Sleep(10)
End If


End While


End Sub
__________________
Marcelo Davila.

:. En Ignorante te conviertes al no preguntar, el que pregunta se nutre... :.