Hi fellas...
Anyone knows how to use the AnimateWindow Api call for a windows form? Please remember that calling it is NOT the problem. The problem is forcing the form to draw its child controls during execution of AnimateWindow. These child controls are not shown because form is not visible. After running AnimateWindow you can set the form's Visible property to true, This will make them Visible too, but too late. Don't you think?
Code:
Public Const AW_BLEND As Integer = &H80000
Public Declare Auto Function AnimateWindow Lib "user32" (ByVal hwnd As Integer, ByVal dwTime As Integer, ByVal dwFlags As Integer) As Integer

Private Sub SomeSub
    dim myForm as System.Windows.Forms.Form

    myForm.Controls.Add(New System.Windows.Forms.Textbox())
    Me.AnimateWindow(myForm.Handle.ToInt32, 400, AW_BLEND)
    myForm.Visible = True
End Sub
Thanks in advance.