So I have everything working at this point but one. I am getting an error under webBrowser1. I am not sure why please help. I know that I was aske if I am declering everything so I will edit the code below to show everything in the form.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
private void Submit_Click (object sender, EventArgs e)
{
using (WebBrowser browser = new WebBrowser())
{
browser.Url = new Uri("http://www.google.com");
HtmlElement textBox = webBrowser1.Document.All["textbox1"];
if (textBox1 != null)
{
textBox.InnerText = textBox1.Text;
}
}
}
Am i missing something to make this work right. Please advise.