Textbox.TextChanged event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry Spence1

    #1

    Textbox.TextChanged event

    I would have thought that VB.Net would have improved the situation whereby
    it doesn't know the difference between the text changing due to the operator
    and text changing programmaticall y. I wonder why it didn't have two events
    for this.

    The only work around I can find is setting global variables or the .TAG
    property on mouse down and up events. Very messy. Is there another way?

    -Jerry


  • Cor Ligthert [MVP]

    #2
    Re: Textbox.TextCha nged event

    Jerry,

    For a text change event with the keybord is probably the best to use the
    key-up, that gives you the most information.

    For a change in text with your program, you don't need in my opinion no
    event, you do that yourself.

    I hope this helps,

    Cor


    Comment

    • Jerry Spence1

      #3
      Re: Textbox.TextCha nged event


      "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
      news:%23yhsW2G2 FHA.3856@tk2msf tngp13.phx.gbl. ..[color=blue]
      > Jerry,
      >
      > For a text change event with the keybord is probably the best to use the
      > key-up, that gives you the most information.
      >
      > For a change in text with your program, you don't need in my opinion no
      > event, you do that yourself.
      >
      > I hope this helps,
      >
      > Cor
      >[/color]

      Thanks Cor (for both answers)


      Comment

      • Dennis

        #4
        Re: Textbox.TextCha nged event

        I agree...the textbox(and most other controls where users can input data)
        need some form of SetText method that doesn't trigger the TextChanged event.
        It's quite annoying to try to initialize text in code when you want to
        respond to a text change event when the user changes the text.


        --
        Dennis in Houston


        "Jerry Spence1" wrote:
        [color=blue]
        >
        > "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
        > news:%23yhsW2G2 FHA.3856@tk2msf tngp13.phx.gbl. ..[color=green]
        > > Jerry,
        > >
        > > For a text change event with the keybord is probably the best to use the
        > > key-up, that gives you the most information.
        > >
        > > For a change in text with your program, you don't need in my opinion no
        > > event, you do that yourself.
        > >
        > > I hope this helps,
        > >
        > > Cor
        > >[/color]
        >
        > Thanks Cor (for both answers)
        >
        >
        >[/color]

        Comment

        Working...