focus on TextBox desired

Discussion in 'Questions (Windows Mobile)' started by mircome, Oct 1, 2008.

  1. mircome

    mircome Member Licensed User

    opening a form with several textboxes I am not able ti fix the focus in the desired textbox:sign0085:
     
  2. Ricky D

    Ricky D Well-Known Member Licensed User

    focussing a textbox

    I do this in a form's show method:

    textbox1.Focus

    I have forms with imagebuttons and textboxes and in the click event of the imagebutton I use the same line

    regards, Ricky

    p.s I also have the textbox's text to be selected by using

    txtEndKm.SelectionStart=0
    txtEndKm.SelectionLength=StrLength(txtEndKm.Text)

    in txtEndKm's gotfocus event
     
    Last edited: Oct 1, 2008
  3. ceaser

    ceaser Active Member Licensed User

    Hi

    I have found the same problem. But once you have compilied the program it works fine on the mobile device.

    Regards
    Michael
     
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