New Webbrowser Control

  • Thread starter Thread starter Daniel Siegl
  • Start date Start date
D

Daniel Siegl

Hi

I am having Issues with the new webbrowser control.

I open a simple HTML page

Like:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>ProCAM Properties Test Page</title>
</head><body>
<form id="TEST" action="">
<input id="DemoText1" type="text" />
<input id="DemoText2" type="text" />
</form></body></html>

And I would like to retrieve the Values of Demotext1 and two after user
presses save on the windows form?

Can somebody help me? Searching in the net did't help

BR
Daniel
 
solved by me ;)

Dim htmlform As Windows.Forms.HtmlElement

Dim htmlcontrol As Windows.Forms.HtmlElement

Dim i As Integer = 0

For Each htmlform In IE.Document.Forms

Debug.WriteLine(htmlform.InnerHtml)



For Each htmlcontrol In htmlform.Children

'Debug.WriteLine(htmlcontrol.InnerHtml)

MsgBox(htmlcontrol.Id + " " + htmlcontrol.GetAttribute("Value").ToString)

Next

Next
 
Back
Top