VTBadfish Posted January 8, 2004 Posted January 8, 2004 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. Quote
VTBadfish Posted January 8, 2004 Author Posted January 8, 2004 I sould mention Im doing this in VB.net thanks again Quote
Nazgulled Posted January 18, 2005 Posted January 18, 2005 I sould mention Im doing this in VB.net thanks again I've crossed something like this too, anyone has a tip on how to fix it? Quote
Nazgulled Posted January 19, 2005 Posted January 19, 2005 doesn't the name say it? it jus aniamtes teh window with blend, slide, and some other effects... Quote
EFileTahi-A Posted January 19, 2005 Posted January 19, 2005 (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 January 19, 2005 by EFileTahi-A Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.