Using Command Buttons to Enter Text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jervin32189
    New Member
    • Aug 2007
    • 1

    Using Command Buttons to Enter Text

    Hello,

    I am interested in designing a program that is optimized for touch-screen systems. But I don't know how to code a command button to enter text. This is necessary for like login screens (using numbers) and entering data. Any help is appreciated. Thanks.

    EDIT: This is for design in VB6. I know, old but good. ;)
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by jervin32189
    ... don't know how to code a command button to enter text...
    If you know how to put something in (for example) a textbox, and you know how to respond to a button click, then what else do you need to know?

    Comment

    • Robbie
      New Member
      • Mar 2007
      • 180

      #3
      Killer, I think he means he doesn't know how to make it enter text into something other than his own program.

      For that, you need to tell VB to simulate the keystrokes, which you do using
      SendKeys StringOfKeysToS end, DelayBetweenEac hKeystrokeInMil lisecs

      How to make your program stay behind the other program which you want to enter text into, so that the other program stays 'on top of' your VB program so that it can receive the text while you press buttons on the VB program, however, is way beyond me. -_-"

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        If it's just an on-screen keyboard that is required, I'd say "don't reinvent the wheel". Use one that's already available. For instance, Windows XP has one built in.

        Comment

        Working...