

Ahora SI funciona, os lo prometo, sino, os devuelvo el dinero...

IMPORTANTE: DEBEIS PONER LA PROPIEDAD BORDERSTYLE EN NONE
Aqui va el code, (esto deberia estar en módulo):
Código
' //////////////////////////////////////////////////////////////// ' // *Autor: *PsYkE1* (miguelin.majo@gmail.com) // ' // *Podeis agrandar o reducir el codigo, siempre y cuando se // ' // respete la autoria y se me comuniquen esos cambios. // ' // *Agradecimientos a BlackZeroX. // ' // *Visita http://foro.rthacker.net // ' //////////////////////////////////////////////////////////////// Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Public Sub Persiana(miForm As Form, Vel As Integer, Desplegar As Boolean, Alto As Boolean _ , Acabar As Boolean) Dim Largo As Integer With miForm If Desplegar = True Then If Alto = True Then Largo = .Height .Height = 0 While Not .Height >= Largo .Height = .Height + 2 Sleep Vel Wend Else Largo = .Width .Width = 0 While Not .Width >= Largo .Width = .Width + 2 Sleep Vel Wend End If Else If Alto = True Then While Not .Height <= 10 .Height = .Height - 10 Sleep Vel Wend Else While Not .Width <= 10 .Width = .Width - 2 Sleep Vel Wend End If End If End With If Acabar = True Then End End Sub
Bien, ahora para llamarlo desde un Form pondríamos esto:
Código
( esta llamada se ejerceria sobre el Form actual, con una velocidad de 5(si quereis que vaya mas despacio aumentar el valor, no bajarlo
Private Sub Form_Activate() Call Persiana(Me, 5, False, True, True) End Sub

Quizas alguien tenga alguna duda preguntar, que es gratis...

Salu2!
