Jump to content

input data and click enter

Recommended Posts

i have an input and a button. i input data in the input and i click the button and the button displays it in a msgbox. is there anyway without setting hotkeys to just automatically click enter and it will display the data in the msgbox instead of having to click the button?

Link to comment
Share on other sites

What about set state of this button to $BS_DEFPUSHBUTTON. Citation from help:

"Creates a push button with a heavy black border. If the button is in a dialog box, the user can select the button by pressing the ENTER key, even when the button does not have the input focus. This style is useful for enabling the user to quickly select the most likely option, or default."

[right]Software is like sex - it's better when it's free. (Linus Torvalds)[/right]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...