Hi,

I want to get a window handle with the FindWindow api, but the function always returns 0.
This is my code :

Private Sub Command1_Click()

Dim WindowHwnd as Long
WindowHwnd = FindWindow("#32770 (Dialog)", CLng(0)) ' it's the ie download window class name
If WindowHwnd = 0 Then
Label1.Caption = "Il n'y a pas de D/L en cours"
Else
Label1.Caption = "Il y a un D/L en cours"
End If

End Sub


Thanks