Capturing key events...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matthew Wells

    #1

    Capturing key events...

    I'm trying to capture a textbox's key event when a user uses the tab key
    without entering any data. I put a stop statememt in the KeyDown, KeyPress,
    and KeyUp events and I've tried the form's keypreview property both ways.
    What am I missing?

    Thanks.

    Matthew Wells
    MWells@NumberCr uncher.com



  • Steve Gdula

    #2
    Re: Capturing key events...

    "Matthew Wells" <MWells@NumberC runcher.com> wrote in message news:<vG31b.450 7$634.163@fe02. atl2.webusenet. com>...[color=blue]
    > I'm trying to capture a textbox's key event when a user uses the tab key
    > without entering any data. I put a stop statememt in the KeyDown, KeyPress,
    > and KeyUp events and I've tried the form's keypreview property both ways.
    > What am I missing?[/color]

    It sounds like you may want to use the 'Lost Focus' event.
    The tab will jump to the next form object, relinquishing
    focus to another. At this point you may want to validate your
    text boxes contents for scrutiny. I hope this is useful for
    your purpose

    -Steve.

    Comment

    Working...