Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

 

 

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.

  • 1 year later...
Posted (edited)
doesn't the name say it? it jus aniamtes teh window with blend' date=' slide, and some other effects...[/quote']

 

Ahh, and I thought it was some kinda rare mushroom with special propperties to cure cancer...

Edited by EFileTahi-A

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...