I need to take from a textbox information from my application and
click an arrow right button -> and have it copy textbox1 information to where ever the cursor is.
Thanks
Brandon
-Here's how it works
(where the WB is replace with the name of your browser. Then where "hello" is replace that with the text box you have. Mine was named textbox1. Be sure that you add an ending like textbox1.text and remove the quotes. Then you place that code in your button.
Here's a copy of the code if you need it.
http://brandonbarclay.com/FormsExample.zip gets solved so I included a copy of sample code to show how. Must be ran in visual studio 2005
click an arrow right button -> and have it copy textbox1 information to where ever the cursor is.
Thanks
Brandon
-Here's how it works
VB.NET:
WB.Document.ActiveElement.InnerText = "hello"
VB.NET:
Sub ButtonClick1_ click
MyWebBrowsersNameHere.Document.ActiveElement.InnerText = TextBox1.Text
End Sub
Here's a copy of the code if you need it.
http://brandonbarclay.com/FormsExample.zip gets solved so I included a copy of sample code to show how. Must be ran in visual studio 2005
Last edited: