I am using a Web Browser control in VB Net Application. I am trying to upload some data to the web page from an excel file.
Do While Not rsGetData.EOF strTemp = IIf(IsDBNull(rsGetData.Fields("Temp").Value), "", rsGetData.Fields("Temp").Value) 'This function will click the search btn in the page Call Search() Do While WebBrowser.ReadyState <> WebBrowserReadyState.Complete Application.DoEvents() Loop System.Threading.Thread.Sleep(5000) 'My Code for Getting the data from the loaded page goes here rsGetData.MoveNext() Loop
After loading the data page, the command rsGetData.MoveNext() should work
The above code has a part Application.Doevents and Thread.sleep; Both these events are not working.
I need something which is more efficient than Application.Doevents.
Please Help Me out...
DoEvents will work fine in VB 6.0, But in Dot Net I think this wont...
Hope the Question is Clear //
This post has been edited by nealgabriel45: 25 March 2008 - 05:50 AM