Winform: Web browser Control
The web browser has the following displayed content, within a html table.
[Element] [Value]
Name
there're more than one way to accomplish this.
For instance, will this work for you?
using System.Windows.Forms;
namespace TestWebBrowser
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
webBrowser1.DocumentText = @"
John Smith
jsmith@hotmail.com
";
}
private void button1_Click(object sender, System.EventArgs e)
{
HtmlElement e1 = webBrowser1.Document.GetElementById("e1");
MessageBox.Show(e1.InnerText);
}
}
}