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. VB Textbox Accept Code

VB Textbox Accept Code

Scheduled Pinned Locked Moved Visual Basic
cssdesignquestion
3 Posts 3 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.
  • R Offline
    R Offline
    rlewistx
    wrote on last edited by
    #1

    :eek:I am trying to find the VB command that invokes after all of the input has been put into a text box, more or less when you tab out or click your mouse into another box. When you double click on the textbox in form design the default is "TextChanged" event. It seems to me that this will run every time the text changes. Lets say I have a 3 digit number. Every time I enter one of the 3 digits the event runs. I don't want the event to run until I am finished all 3 digits. I tried the "OnAcceptsTabChanged" event but that does not seem to be the right one. Can anybody steer me to the right code event? Rich

    C Richard DeemingR 2 Replies Last reply
    0
    • R rlewistx

      :eek:I am trying to find the VB command that invokes after all of the input has been put into a text box, more or less when you tab out or click your mouse into another box. When you double click on the textbox in form design the default is "TextChanged" event. It seems to me that this will run every time the text changes. Lets say I have a 3 digit number. Every time I enter one of the 3 digits the event runs. I don't want the event to run until I am finished all 3 digits. I tried the "OnAcceptsTabChanged" event but that does not seem to be the right one. Can anybody steer me to the right code event? Rich

      C Offline
      C Offline
      Colin Leitner
      wrote on last edited by
      #2

      You could use the LostFocus event wich occurs as soon as the user selects another component or it looses it's focus for any other reason.

      1 Reply Last reply
      0
      • R rlewistx

        :eek:I am trying to find the VB command that invokes after all of the input has been put into a text box, more or less when you tab out or click your mouse into another box. When you double click on the textbox in form design the default is "TextChanged" event. It seems to me that this will run every time the text changes. Lets say I have a 3 digit number. Every time I enter one of the 3 digits the event runs. I don't want the event to run until I am finished all 3 digits. I tried the "OnAcceptsTabChanged" event but that does not seem to be the right one. Can anybody steer me to the right code event? Rich

        Richard DeemingR Online
        Richard DeemingR Online
        Richard Deeming
        wrote on last edited by
        #3

        Look at the Validating event. It fires whenever you move the focus between controls which have CausesValidation = True. For example, if you have a TextBox, an "OK" button and a "Cancel" button, you would set CausesValidation = True for the TextBox and "OK" button, and False for the "Cancel" button. Then, when you tab away from the TextBox to the "OK" button, or click the "OK" button, your validation code runs. When you click the "Cancel" button, it doesn't run.

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        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