Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. problem: webBrowser1.Navigate OR the loaded page? - for a jumping cursor.

problem: webBrowser1.Navigate OR the loaded page? - for a jumping cursor.

Scheduled Pinned Locked Moved C#
helpcomquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _Q12_
    wrote on last edited by
    #1

    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.

    D 1 Reply Last reply
    0
    • _ _Q12_

      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.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      _ 2 Replies Last reply
      0
      • D 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

        _ Offline
        _ Offline
        _Q12_
        wrote on last edited by
        #3

        ok, thanks... but is a very big loss,pity,...eh. |:)

        1 Reply Last reply
        0
        • D 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

          _ Offline
          _ Offline
          _Q12_
          wrote on last edited by
          #4

          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.

          D 1 Reply Last reply
          0
          • _ _Q12_

            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.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups