943,753 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 11102
  • VB.NET RSS
Nov 12th, 2008
0

VB.Net HTML document read

Expand Post »
Hey guys, i need to read form(s) on VB.Net from the simple html based web sites, like on VB6 webbrowser object;
VB.NET Syntax (Toggle Plain Text)
  1. WebBrowser.Document.All("form").All("field")
But i shouldn't to use a WebBrowser object. How can i do this on VB.net?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jahanna is offline Offline
3 posts
since Nov 2008
Nov 19th, 2008
0

Re: VB.Net HTML document read

Dim i As Integer = 0

If WebBrowser1.Document IsNot Nothing Then

Dim str As String = String.Empty

For Each form As HtmlElement In WebBrowser1.Document.Forms

i = i + 1

str = i.ToString + " " + str + form.Name + vbCrLf

str = str + form.GetType.ToString + vbCrLf

str = str + form.InnerText.ToString + vbCrLf

str = str + form.OuterText.ToString + vbCrLf

Next

MessageBox.Show(str)


-------------------------------------
Hope this helps :-) Ask me anything you need to know. Any proggin lang too :-) admin@simulanics.com
Reputation Points: 10
Solved Threads: 0
Newbie Poster
simulanics is offline Offline
2 posts
since Nov 2008
Nov 20th, 2008
0

Re: VB.Net HTML document read

Thanks for reply the topic simulanics but my problem is little different. I can not be use the Webbrowser control on this program. How can i do this with another way? Thats all i need. If you know the another way to do this i realy greatful.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jahanna is offline Offline
3 posts
since Nov 2008
Nov 21st, 2008
0

Re: VB.Net HTML document read

Reputation Points: 10
Solved Threads: 9
Junior Poster
sierrainfo is offline Offline
144 posts
since May 2008
Nov 21st, 2008
0

Re: VB.Net HTML document read

It's still webbrowser component is it different way to do this ? Or its can be just with webbrowser anyway thanks 4 the helps.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jahanna is offline Offline
3 posts
since Nov 2008
Jun 19th, 2009
0

Re: VB.Net HTML document read

Use the WebRequest Class built into the .Net Framework..check out my newest software title Simulanics Mobsters Bot...just google it..I'm sure you'll get a hit :-D..but using a similar class built for vb6 my proggies do the same thing...but stick with the example on the following site...it should help u :-)

http://www.vbdotnetheaven.com/Upload...uestClass.aspx
Reputation Points: 10
Solved Threads: 0
Newbie Poster
simulanics is offline Offline
2 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Send Message to YM
Next Thread in VB.NET Forum Timeline: vb.net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC