473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Webbrowser documentComplete issue

I have created a program where I can automatically fill up form and submit, but there are times that I got an error when the program tried to fillup the web form adn submit it.

I have put the code to fillup the web form inside the webbrowser documentcomplete event

e.g. Private Sub web1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
'Fill up form
with web1.document
.all("UserName").value=text1.text
.all("pass").value=text2.text
.all("Submit").click
end with
End Sub

this code work sometimes and sometimes get an error saying Object variable not define....

I guess the computer or program work faster than the loading of the webbrowser document...

Is there a way to do this like doing some loop until the webbrowser completely loaded?
Aug 3 '07 #1
1 2134
Anyone have idea or can help me about this problem
Aug 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John Boehme | last post by:
Hi all, Using a WebBrowser control on a form, after the control has been initialized, I perform a Navigate to the page I need loaded. I receive events from the control indicating that it is...
1
by: boxim | last post by:
Hi All, Just after some other opinions really.... We're writing this application that in places implements the WebBrowser control to make certain bits look nicer as well as make things quicker...
2
by: Mel Weaver | last post by:
Hi, Screwed up on the last one. Why does the messagebox already appear? private void button1_Click(object sender, EventArgs e) { WebBrowser web = new WebBrowser();...
4
by: Toma Marinov | last post by:
Hello ! I made some test with webbrowser control in VS.2005. When I load a word document in webbrowser through .Navigate method (from my hdd), I want to get the stream of the loaded doc file with...
0
by: Yushan | last post by:
Hi all, We have a C# WinForm app that has a WebBrowser control on one of its forms, and we have code in its DocumentComplete event. The events gets fired in our development machines (with VS...
2
by: nupur.agarwal29 | last post by:
Hi, I am using System.Windows.Forms.Webbrowser control in my application. For the Ajax based sites like live.com, the webbrowser control processes and renders the javascript requests, even after...
0
by: Jocker | last post by:
I'll try reposting this message with the hope someone can help me with this issue. PS: is this the right newsgroup for this question? --- Hi Group I'm writing an Internet Explorer plugin....
0
by: Sin Jeong-hun | last post by:
I've found that if a MessageBox (called by alert/confirm from Javascript) or a web page modeless dialog is popped up, I cannot call Navigate of the WebBrowser control. If I do, a COM exception...
4
by: Robson Siqueira | last post by:
Folks, I am facing a problem. I am trying to manipulate the HTML data (thru the Document and DocumentText properties) of the WebBrowser object (System.Windows.Forms). The problem is that the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.