| | |
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 |
.net .net2008 30minutes 2005 2008 access account arithmetic array basic binary bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dropdownlist excel fade file-dialog filter folder ftp generatetags google hardcopy images input insert intel internet mobile monitor ms net networking objects output panel passingparameters peertopeervideostreaming picturebox picturebox1 port position print printing problem problemwithinstallation project save searchbox searchvb.net select serial shutdown soap survey table tcp temperature text textbox timer timespan toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year






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