Discussion in 'Questions (Windows Mobile)' started by ceaser, May 27, 2008.

  1. ceaser

    ceaser Active Member Licensed User


    Some of the PPC have real keyboards! In VB when I hit the "Enter" button it returns a keypress of 13. Is it possible to do the same here? What I want to do is where there are a couple of input boxes (textboxes), that the focus gets to the first input box (whn the form gets loaded), the user enters the data and hits the "Enter" button and then the focus must go to the next textbox.:(

  2. Erel

    Erel Administrator Staff Member Licensed User

    Regular textboxes don't catch the Enter button. It will catch it if you set Multiline to true.
    Then you can check for chr(13) and use TextBox.Handled to ignore this sign.
  3. ceaser

    ceaser Active Member Licensed User

    Hi Erel

    Thanks for the help.

    I see it works on a normal textbox as well.

    Sub LeftCoord_Keypress(Keypress)
    If keypress=Chr(13) AND LeftCoord.Text<>"" Then TopCoord.Focus
    End Sub

  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