Internet explorer et vb 2008
Bonjour,
Je cherche sans succès à mettre à niveau une fonction vba vers vb.net mais ca ne marche pas.
Voici la fonction qui marche bien en vba et que je souhaite utiliser dans un programme en vb net
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| Public Function WaitIE(oIE As InternetExplorer, Optional pTimeOut As Long = 0) As Boolean
Dim lTimer As Double
lTimer = Timer
Do
DoEvents
If oIE.readyState = READYSTATE_COMPLETE And Not oIE.Busy Then Exit Do
If pTimeOut > 0 And Timer - lTimer > pTimeOut Then
WaitIE = True
Exit Do
End If
Loop
End Function |
Merci de votre aide