Hi,
I am trying to create LogIN screen with avi file in the background
I've run AVI on form with this code

VB Code:
  1. Private Declare Function mciSendString Lib "winmm.dll" Alias _
  2. "mciSendStringA" (ByVal lpstrCommand As String, ByVal _
  3. lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal _
  4. hwndCallback As Long) As Long
  5.  
  6.  
  7. Private Sub Form1_Load()
  8.  
  9. Last$ = Form1.hWnd & " Style " & &H40000000
  10. ToDo$ = "open C:\Myavi.avi Type avivideo Alias video parent " & Last$
  11. x% = mciSendString(ToDo$, 0&, 0, 0)
  12. x% = mciSendString("put video window at 0 0 210 210", 0&, 0, 0)
  13. x% = mciSendString("play video", 0&, 0, 0) )
  14. End Sub
  15.  
  16. Private Sub Form_Unload(Cancel As Integer)
  17. x% = mciSendString("close video", 0&, 0, 0)
  18. End Sub

but when AVI starts VB doesn't fire form1_onMouseMove event

On Form1_onMouseMove I have this code

frmMain.Show

Without AVI in the back this code works fine