simple textbox question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike

    #1

    simple textbox question

    If I have an application which has 1 form and that form
    has 1 textbox. How can I make the cursor appear in the
    textbox when the form loads? So a user can just start
    typing and doesn't have to click on the textbox first.
    Thanks for the reply.

    Mike
  • GMorris

    #2
    Re: simple textbox question

    Set the TabIndex of the control to 0

    "Mike" <mikebiros@hotm ail.com> wrote in message
    news:019a01c3b2 08$d6e4fec0$a40 1280a@phx.gbl.. .[color=blue]
    > If I have an application which has 1 form and that form
    > has 1 textbox. How can I make the cursor appear in the
    > textbox when the form loads? So a user can just start
    > typing and doesn't have to click on the textbox first.
    > Thanks for the reply.
    >
    > Mike[/color]


    Comment

    • Mike

      #3
      Re: simple textbox question

      I tried doing that but if I have a button on my form,
      then that button gets focus even if the textbox has a
      TabIndex of 0 and the button has a TabIndex of 1.
      [color=blue]
      >-----Original Message-----
      >Set the TabIndex of the control to 0
      >
      >"Mike" <mikebiros@hotm ail.com> wrote in message
      >news:019a01c3b 208$d6e4fec0$a4 01280a@phx.gbl. ..[color=green]
      >> If I have an application which has 1 form and that form
      >> has 1 textbox. How can I make the cursor appear in the
      >> textbox when the form loads? So a user can just start
      >> typing and doesn't have to click on the textbox first.
      >> Thanks for the reply.
      >>
      >> Mike[/color]
      >
      >
      >.
      >[/color]

      Comment

      • Morten Wennevik

        #4
        Re: simple textbox question

        If your texbox is inside a groupbox or panel, make sure it also has index 0

        --
        Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

        Comment

        Working...