Question:

Visual basic strings

by  |  earlier

0 LIKES UnLike

I am making an onscreen keyboard that types into a text box (I'm still learning) how will I make the enter function work

 Tags:

   Report

3 ANSWERS


  1. you can try sendkeys function

    upon clicking on the ENTER BUTTON on your on-screen keyboard.

    just send:

    SENDKEYS{"ENTER"}

    hope this helps.


  2. When some press the enter key on physical keyboard an event is raised, then you capture that event in a event handler where you would check if the key pressed is the enter key.  The function itself is defined by the application which has focus at moment the enter key was pressed.  In your case you probably have a keyboard on screen composed of buttons.  As you press the buttons the letters are entered in your text box.  The enter key is just another button, when you press that button you define what it will do (execute any code).  Like I said each application has implemented the enter key some what differently.


  3. First you create a form. Then, in the form properties, enable Key Preview. In the form event handler function for Key_Press, check to see if the "Enter" key has been hit and then you decide what to do within that function.
You're reading: Visual basic strings

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.