473,387 Members | 1,569 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,387 software developers and data experts.

Filling in web page through code...

I've got an app in VB6 that uses a webbrowser control to go to a web
site, enter text in a box, click the Submit button and fetch the
results.

Apparently the code won't translate to VB2005. The program stops on
this line:

WebBrowser1.Document.DomDocument.All("address1").V alue = MyString

with the error "Object reference not set to an instance of an object"
and the Upgrade Warnings above the line of code show:

Couldn't resolve default property of object WebBrowser1.Document.All.

What is the correct syntax for this, or is there a better way of doing
this?
Sep 20 '06 #1
2 1173
Hello Kevin,

Why don't you take a look at the webbrowser control's properties and then
come back if you cant figure it out.

-Boo
I've got an app in VB6 that uses a webbrowser control to go to a web
site, enter text in a box, click the Submit button and fetch the
results.

Apparently the code won't translate to VB2005. The program stops on
this line:

WebBrowser1.Document.DomDocument.All("address1").V alue = MyString

with the error "Object reference not set to an instance of an object"
and the Upgrade Warnings above the line of code show:

Couldn't resolve default property of object WebBrowser1.Document.All.

What is the correct syntax for this, or is there a better way of doing
this?

Sep 20 '06 #2
Boo,
Thanks for the response. I did figure it out. I wasn't waiting for the
WebBrowser1.DocumentComplete event. Everything's working fine once the
page loads.

On Wed, 20 Sep 2006 21:40:26 +0000 (UTC), GhostInAK
<gh*******@gmail.comwrote:
>Hello Kevin,

Why don't you take a look at the webbrowser control's properties and then
come back if you cant figure it out.

-Boo
>I've got an app in VB6 that uses a webbrowser control to go to a web
site, enter text in a box, click the Submit button and fetch the
results.

Apparently the code won't translate to VB2005. The program stops on
this line:

WebBrowser1.Document.DomDocument.All("address1"). Value = MyString

with the error "Object reference not set to an instance of an object"
and the Upgrade Warnings above the line of code show:

Couldn't resolve default property of object WebBrowser1.Document.All.

What is the correct syntax for this, or is there a better way of doing
this?
Sep 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: George | last post by:
How can I do the following in python: given two strings: form=""" <html> <head> <title> My Sample Web Page </title> </head> <body bgcolor="white"> <p> What are the weekdays? <ol>
1
by: reidarT | last post by:
I am filling a combobox with data from a table. This is done with the code below. After update of the combobox I want to fill txtField2 with data from Field2 in the select-statement. How can I do...
6
by: Brian Henry | last post by:
I was wondering how you guys would handle filling a list view with something like 10,000 items which each have 10 sub items on them... there has to be major speed issues with that right? Yet,...
3
by: crjunk | last post by:
I have a 3 table in my DataSet that I'm filling with data. After I've filled these 3 tables, I'm then trying to run a query that will fill a 4th table in the DataSet with data from the three...
1
by: thegame | last post by:
Filling One DataGrid Based on Selection from Another DataGrid - Both in Separate User Controls Hello, I have an interesting dilemma. I have an ASPX page with two user controls (two ASCXs). ...
0
by: Derek Vincent | last post by:
Why am I having problems filling my dataset when I select fields of type varchar(350) from interbase? I can fill the dataset when I select every other field in the table but I receive and error...
2
by: VMI | last post by:
I'm filling up a gridview and the underlying datatable has about 30,000 records, so it takes some time before I can see the page again with the records on the gridview. Is there any type of...
5
tolkienarda
by: tolkienarda | last post by:
hi all I am working on a form valiadation for now i can tell people that they made a mistake filling out the form but my script to tell them which fields they missed isn't working. I think what my...
2
by: GarthRodgers | last post by:
Hey all I'm designing an online exam booking system in Access and need to find a way to import table data into Roboform (or some other form filling package) straight from the database. The only...
7
by: pb | last post by:
Hi all, I have some code that automatically generates a url depending on user selections. This url is then set as a hyperlink and the user clicks on the link that has the target as an iframe on...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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,...

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.