B4J Question How to check a user's press is the Enter Key?

Discussion in 'B4J Questions' started by Theera, Jan 19, 2014.

  1. Theera

    Theera Well-Known Member Licensed User

    Hi all,
    In method of TextField is Sub txtField_TextChanged (Old As String, New As String), I need to check a user's press is the Enter Key,it will change focus to other.
     
  2. rwblinn

    rwblinn Well-Known Member Licensed User

    Hi Theera,

    think this is being handled by the TextField Action Event, like:

    Code:
    Sub textfield1_Action
       
    Log("User has pressed Enter...")
    End Sub
     
  3. Theera

    Theera Well-Known Member Licensed User

    Thank you for your replied,Rob. I think it's alike this,but I don't know to manage.
    In VB6.0 using belows:
    Code:
    If KeyAscii=13 then
      SendKeys 
    "{TAB}",True
      KeyAscii=
    0
    End If

    In B4J How to coding?
     
    Last edited: Jan 20, 2014
  4. Theera

    Theera Well-Known Member Licensed User

    Thank you,Erel from this.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice