Results 1 to 2 of 2

Thread: AnimateWindow Api call

  1. #1

    Thread Starter
    Member Vahid's Avatar
    Join Date
    Aug 2002
    Location
    Iran
    Posts
    37

    Question AnimateWindow Api call

    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.

  2. #2
    New Member
    Join Date
    Jan 2004
    Posts
    1
    No one yet has been able to help me with this problem either; Does anyone know the answer!?

    PLEASE HELP THIS IS DRIVING ME CRAZY

    Thanks in advance...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width