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. Visual Basic
  4. Binding Navigator Movement Event Error

Binding Navigator Movement Event Error

Scheduled Pinned Locked Moved Visual Basic
helpcsharpwpfwcfquestion
4 Posts 3 Posters 3 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.
  • M Offline
    M Offline
    Member_14809754
    wrote on last edited by
    #1

    Hi, I'm starting to learn coding with vb .net and I'm having and issue while moving through registers using bindingnavigator. Let me explain: I have a function (already tested and works fine) that receives an idNumber from a textbox and returns a file path. If I call that function using

    Private Sub BindingNavigatorMoveNextItem\_Click(sender As Object, e As EventArgs) Handles BindingNavigatorMoveNextItem.Click
        changeUser(usuarioTextBox.Text)
    End Sub
    

    it calls the function with the textbox data before moving to the next register, and that's not what I would like to do. Any clues to solve this? Maybe I'm using and incorrect event? Thanks in advance

    L 1 Reply Last reply
    0
    • M Member_14809754

      Hi, I'm starting to learn coding with vb .net and I'm having and issue while moving through registers using bindingnavigator. Let me explain: I have a function (already tested and works fine) that receives an idNumber from a textbox and returns a file path. If I call that function using

      Private Sub BindingNavigatorMoveNextItem\_Click(sender As Object, e As EventArgs) Handles BindingNavigatorMoveNextItem.Click
          changeUser(usuarioTextBox.Text)
      End Sub
      

      it calls the function with the textbox data before moving to the next register, and that's not what I would like to do. Any clues to solve this? Maybe I'm using and incorrect event? Thanks in advance

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What do you mean by "register"? It's not a common term in the context of VB. And the "navigator" is typically used to move position in a "set of records". Moving between "text boxes" is usually via the Tab key. You want to do something with text in a Text Box? It's usually done in response to a "button click"; e.g. to query or save something.

      It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

      M 1 Reply Last reply
      0
      • L Lost User

        What do you mean by "register"? It's not a common term in the context of VB. And the "navigator" is typically used to move position in a "set of records". Moving between "text boxes" is usually via the Tab key. You want to do something with text in a Text Box? It's usually done in response to a "button click"; e.g. to query or save something.

        It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

        M Offline
        M Offline
        Member_14809754
        wrote on last edited by
        #3

        Hi, Sorry for not using the right terms, I'm not familiar with them and got confused translating. I'm using the navigator to move between records. What I was trying is to change a PictureBox Image every time the user moves using the navigator buttons. The path of the image is stored in db and contained in a textbox. The problem I have is that using MoveNext event, I get the value of the textbox prior to move; so I don't get the right image path. Thanks

        M 1 Reply Last reply
        0
        • M Member_14809754

          Hi, Sorry for not using the right terms, I'm not familiar with them and got confused translating. I'm using the navigator to move between records. What I was trying is to change a PictureBox Image every time the user moves using the navigator buttons. The path of the image is stored in db and contained in a textbox. The problem I have is that using MoveNext event, I get the value of the textbox prior to move; so I don't get the right image path. Thanks

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          Be aware that the movenext event MAY fire twice once on leaving a record and once on entering a record (I have not tested this but found it with other events). You may need to test the content of the object passed to the event.

          Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

          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