I have 1 form (Form1). Within this form there is a Web Browser (webBrowser1), that automatically loads to a site. Keep this in mind for later.
I have a text box (TextBox1). When the web browser loads, I would like to grab text from a particular ID (I already know the ID of the element) and I would like it to be put into the textbox.
I have tried the below code but I get an error when I try to run it.
TextBox1.Text = webBrowser1.Doc ument.GetElemen tById("ELEMENT_ ID_HERE").GetAt tribute("value" );
I have a text box (TextBox1). When the web browser loads, I would like to grab text from a particular ID (I already know the ID of the element) and I would like it to be put into the textbox.
I have tried the below code but I get an error when I try to run it.
TextBox1.Text = webBrowser1.Doc ument.GetElemen tById("ELEMENT_ ID_HERE").GetAt tribute("value" );
Comment