I'm having trouble getting the AnimateWindow API working in VB.NET. Here's the declaration:
Private Declare Function AnimateWindow Lib "user32" (ByVal hwnd As Long, ByVal dwTime As Long, ByVal dwFlags As Long) As Boolean
And the code I'm using is:
AnimateWindow(frmNotification.Handle.ToInt32, 450, &H8 Or &H40000)
At the time the function is called, the form is hidden (it will definitely fail otherwise). I can't figure out why it's not working. I want it to slide up from the bottom left corner of the screen but currently, nothing happens.