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

WebbrowersInstance.DocumentText

XP PRO - VB 2005 - WINDOWS FORMS
-----------------
Dim HText as String
' Array CallLetters is filled in form load and works fine
For Looper As Int16 = 0 To 13
WebBrowser1.Navigate("http://SomeWebSite.com/q/hp?s=" &
CallLetters(Looper))
HText = WebBrowser1.DocumentText
' For zzz As
Double = 1 To 100000
'
Application.DoEvents()
' Next zzz

If InStr(HText, "Close*") > 1 Then
Label1.Text = "Yes I found It" ': End
Else
Label1.Text = "NOPE"
End If
Next Looper
----------------------------------

HText is empty in the first (zero) loop.
On 2nd loop (loop 1) the WebBrowers1 shows 2nd website but HText = 1st
website.
I even tried to put a waiting loop and this didn't work either.
Sometimes the WebBrower1.DocumentCompleted event fires twice for same
website.

Basically I'm trying to screen scrape website page parse it and retrieve
data for use.

Thanks
Jun 12 '06 #1
0 860

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

Similar topics

0
by: ata | last post by:
Hello ! I use WebBrowser class in .NetFramework 2.0 beta. When i work with english pages i don't have any problems, but if I trying to use it for russian page like www.ya.ru, I 've got a real...
2
by: myzm | last post by:
Hello there, I use webbrowser loading a web page and want to display the html file in a RichtextBox. I find out that the size of the DocumentText is far less than the actual size of the html...
1
by: annieorben | last post by:
I'm trying to view HTML code by examining the .DocumentText property of a web browser. But I can't get any more than 4096 characters to show up. I'm using VB 2005 Express edition. Any ideas what...
5
by: Boki | last post by:
Hi All, I am using webbrowser control, it is very often to happen: A first chance exception of type 'System.IO.FileNotFoundException' occurred in System.Windows.Forms.dll but sometimes...
16
by: nime | last post by:
How can I grab html source of a frame? I can retrive main frame by WebBrowser1.DocumentText but I want to retrive inner (child) frame... WebBrowser1.Document.Window.Frames(0).DocumentText like...
2
by: Zytan | last post by:
I have a WebBroswer control, and I set the HTML it will display via DocumentText, which takes a a string. This shows the HTML code from the string in the control. But, sometimes, the WebBrowser...
0
by: micmit | last post by:
I wanted to avoid any HTML file creation , so initial HTML was formed as a string and assigned to DocumentText. After that the aim was to manipulate with html using DOM . It turned out...
7
by: - Electronic.HR - | last post by:
I have very strange and stupid problem with .NEt's webBrowser control... If I do this: ---------------------------------- private void btnGoogle_click(object sender, EventArgs e) { ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.