default for command box

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

    default for command box

    Hello. I have a program that when it starts up, the cursor is blinking
    in the text box. That's good. I was just wondering how I can make the
    command box underneath it (we'll say it calculates some value based on
    whatever the textbox holds) trigger a click event when I press enter,
    even though the cursor is still in the text box.

    Any help is appreciated. Cya.

  • Jeramie

    #2
    Re: default for command box

    MrTemp <[email protected] t> wrote in message news:<mt8fb.857 8$6C4.363@pd7tw 1no>...[color=blue]
    > Hello. I have a program that when it starts up, the cursor is blinking
    > in the text box. That's good. I was just wondering how I can make the
    > command box underneath it (we'll say it calculates some value based on
    > whatever the textbox holds) trigger a click event when I press enter,
    > even though the cursor is still in the text box.
    >
    > Any help is appreciated. Cya.[/color]

    Set the Default property for the command button to True. This will
    tie the enter key press to the click event for that button.

    Jeramie

    Comment

    Working...