| | |
VB.Net HTML document read
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
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?
VB.NET Syntax (Toggle Plain Text)
WebBrowser.Document.All("form").All("field")
•
•
Join Date: Nov 2008
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
•
•
Join Date: May 2008
Posts: 144
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
•
•
Join Date: Nov 2008
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
- final year project...Pls Help!!! (RSS, Web Services and SOAP)
- 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)
- 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
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2008 access add application arithmetic array assignment basic binary box button buttons center click code combo combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel exists firewall folder image images isnumericfuntioncall login math memory mobile module ms msaccess mssqlbackend mysql navigate net opacity pan peertopeervideostreaming picturebox picturebox1 port print printpreview problemwithinstallation project record regex reports" reuse right-to-left save savedialog search serial sorting sqldatbase storedprocedure string temp textbox timer txttoxmlconverter updown useraccounts usercontol usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vbnet view vista visual visualbasic visualbasic.net visualstudio web wpf xml






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