New Webbrowser Control

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
 
D

Daniel Siegl

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top