publespace
Messages postés31Date d'inscriptionsamedi 18 août 2007StatutMembreDernière intervention15 mars 2016
-
9 juin 2008 à 12:34
cs_antho2005
Messages postés150Date d'inscriptionsamedi 8 avril 2006StatutMembreDernière intervention 1 mai 2012
-
29 juin 2008 à 14:45
Salut tout le monde
Est ce qu'il existe un code pour faire en sorte que l'execution du logiciel fasse une tempo le temps qu'une webbrowser ai fini de charger sa page?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate("http://www.vbfrance.com/infomsg_SAVOIR-SI-WEBBROWSER-BIEN-NAVIGUE_1156204.aspx?p=3")
Do While WebBrowser1.ReadyState <> WebBrowserReadyState.Complete
Threading.Thread.Sleep(1)
Application.DoEvents()
Loop
DimdebutAsLong= Environment.TickCount
Do While(Environment.TickCount - debut) / 1000 < 10
System.Threading.Thread.Sleep(1)
Application.DoEvents()
Loop
MsgBox("Chargement terminé !")
'Suite des instructions ...
End Sub