VB.Net HTML document read
Please support our VB.NET advertiser: DiscountASP.NET – 3 Months Free on VB.NET Web Hosting
![]() |
Hey guys, i need to read form(s) on VB.Net from the simple html based web sites, like on VB6 webbrowser object;
But i shouldn't to use a WebBrowser object. How can i do this on VB.net?
WebBrowser.Document.All("form").All("field")•
•
Posts: 2
Reputation:
Solved Threads: 0
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
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
•
•
Posts: 143
Reputation:
Solved Threads: 9
hi
see the following links. I hope it will help u.
http://www.codeproject.com/KB/books/0764549146_8.aspx
http://www.codeproject.com/KB/recipe...5_Browser.aspx
see the following links. I hope it will help u.
http://www.codeproject.com/KB/books/0764549146_8.aspx
http://www.codeproject.com/KB/recipe...5_Browser.aspx
•
•
Posts: 2
Reputation:
Solved Threads: 0
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
http://www.vbdotnetheaven.com/Upload...uestClass.aspx
![]() |
Similar Threads
Other Threads in the VB.NET Forum
- Capturing data from txt file using JavaScript/HTML (JavaScript / DHTML / AJAX)
- Using Hidden Variables in ASP.NET (ASP.NET)
- Inserting dynamic values into Javascript variables (JavaScript / DHTML / AJAX)
- Opening 20,000 notepad files and appending to one document (C#)
- cant acess some websites and some programs wont connect to the net. (Viruses, Spyware and other Nasties)
- Opening 20,000 notepad files and appending to one document (C)
- how to pop up an html file from your Java GUI (Java)
- final year project...Pls Help!!! (RSS, Web Services and SOAP)
- finding out variable type from html input type tag in javascsript (HTML and CSS)
- Apache and PHP (PHP)
Other Threads in the VB.NET Forum
- Previous Thread: Send Message to YM
- Next Thread: vb.net
•
•
•
•
Views: 2216 | Replies: 5 | Currently Viewing: 1 (0 members and 1 guests)





is it different way to do this ? Or its can be just with webbrowser anyway thanks 4 the helps.
Linear Mode