Click here to Skip to main content
15,885,952 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I'm on facebook translate program. I am writing visual basic textBox1 Turkish. conveys Google Translate. google translate textbox2 are turning to English. okay so far. How do I transfer textbox2 the English text in the message section textbox facebook te? I hope you can help respects.
Posted

The Textbox object has a property .Text

so you could code this:
VB
String s = textBox1.Text
String trans = myTranlatefunc(s)
textbox2.Text = trans
 
Share this answer
 
Comments
[no name] 25-Mar-15 8:18am    
Private Sub TextBox2_TextChanged(sender As System.Object, e As System.EventArgs) Handles TextBox2.TextChanged
Dim a As HtmlElementCollection
a = WebBrowser2.Document.Body.GetElementsByTagName("property.Text")
For Each em As HtmlElement In a
MessageBox.Show(TextBox2().ToString())

Dim textbox As String = Me.WebBrowser2.Document.Body.InnerText

TextBox2.Text = textbox
Next
End Sub

I do it this way but it did not!
I found the answer ("message_body")

The article you wrote is sending the message section diagnosis TextBox on facebook

WebBrowser2.Document.GetElementById("message_body").SetAttribute("Value", TextBox2.Text)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900