Código
#Region " Animate Window " ' [ Animate Window ] ' ' // By Elektro H@cker ' ' Examples : ' AnimateWindow(Me.Handle, 1500, Animation.Show_Fade) ' AnimateWindow(Me.Handle, 1500, Animation.Hide_Center) Public Declare Function AnimateWindow Lib "user32" (ByVal hwnd As IntPtr, ByVal dwtime As Int64, ByVal dwflags As Animation) As Boolean Public Enum Animation As Int32 Show_Left_To_Right = 1 Show_Right_To_left = 2 Show_Top_To_Bottom = 4 Show_Bottom_to_top = 8 Show_Corner_Left_UP = 5 Show_Corner_Left_Down = 9 Show_Corner_Right_UP = 6 Show_Corner_Right_Down = 10 Show_Center = 16 Show_Fade = 524288 Hide_Left_To_Right = 1 Or 65536 Hide_Right_To_left = 2 Or 65536 Hide_Top_To_Bottom = 4 Or 65536 Hide_Bottom_to_top = 8 Or 65536 Hide_Corner_Left_UP = 5 Or 65536 Hide_Corner_Left_Down = 9 Or 65536 Hide_Corner_Right_UP = 6 Or 65536 Hide_Corner_Right_Down = 10 Or 65536 Hide_Center = 16 Or 65536 Hide_Fade = 524288 Or 65536 End Enum #End Region