Hey guys, i need to read form(s) on VB.Net from the simple html based web sites, like on VB6 webbrowser object;
WebBrowser.Document.All("form").All("field")
But i shouldn't to use a WebBrowser object. How can i do this on VB.net?
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
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.
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/recipes/IE7_Clone_VS2005_Browser.aspx
It's still webbrowser component :D is it different way to do this ? Or its can be just with webbrowser anyway thanks 4 the helps.
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 :-)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.