problem: webBrowser1.Navigate OR the loaded page? - for a jumping cursor.
-
For each (char)character I wrote in textBox1, the webBrowser1.Navigate is fired. The problem is that the mouse cursor JUMP from my textbox1 into webBrowser1, and I don't figure out WHY is doing that on this PARTICULAR PAGE(see code). On other pages i see is working fine, but here, is going nuts. I think is (part) because of the webBrowser1.Navigate method, and (part) because of the page. I need help on this matter. Its impossible for me to resolve it. private void textBox1_TextChanged(object sender, EventArgs e) { webBrowser1.Navigate("http://translate.google.com/?hl=en&tab=wT#en|ro|" + textBox1.Text); } Thanks.
-
For each (char)character I wrote in textBox1, the webBrowser1.Navigate is fired. The problem is that the mouse cursor JUMP from my textbox1 into webBrowser1, and I don't figure out WHY is doing that on this PARTICULAR PAGE(see code). On other pages i see is working fine, but here, is going nuts. I think is (part) because of the webBrowser1.Navigate method, and (part) because of the page. I need help on this matter. Its impossible for me to resolve it. private void textBox1_TextChanged(object sender, EventArgs e) { webBrowser1.Navigate("http://translate.google.com/?hl=en&tab=wT#en|ro|" + textBox1.Text); } Thanks.
It's doing that probably because the page is coded to set one of its textboxes as the one that souls have the focus. There's nothing you can do to change that behavior. A better solution would be to not use Google's Translate page but instead use a service to do the translation and your code just displays the result in a textbox. You're relying on things that you have no control over.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
It's doing that probably because the page is coded to set one of its textboxes as the one that souls have the focus. There's nothing you can do to change that behavior. A better solution would be to not use Google's Translate page but instead use a service to do the translation and your code just displays the result in a textbox. You're relying on things that you have no control over.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
It's doing that probably because the page is coded to set one of its textboxes as the one that souls have the focus. There's nothing you can do to change that behavior. A better solution would be to not use Google's Translate page but instead use a service to do the translation and your code just displays the result in a textbox. You're relying on things that you have no control over.
A guide to posting questions on CodeProject[^]
Dave KreskowiakCan you direct me to a sample for using what you suggesting: "use a service to do the translation"? It is real? :) There are dictionaries other than sites on internet? I downloaded one with 30k word + samples, synonyms and explanations for each word, but i never been able to put it in practice. Its a very elaborate PERSONAL project... and i'm single(no help from anybody). I am crazy to even think to such a project. But, please enlighten me -- i do it for fun, and with love for what i like. ;) Thanks again.
-
Can you direct me to a sample for using what you suggesting: "use a service to do the translation"? It is real? :) There are dictionaries other than sites on internet? I downloaded one with 30k word + samples, synonyms and explanations for each word, but i never been able to put it in practice. Its a very elaborate PERSONAL project... and i'm single(no help from anybody). I am crazy to even think to such a project. But, please enlighten me -- i do it for fun, and with love for what i like. ;) Thanks again.
Using the free Bing Translate Service API[^] Google's is now a paid service only because it was abused.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak