Focus

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

    #1

    Focus

    I have several controls in a frame. I want one of controls to have the focus
    (input focus) when the program starts. However cotrol.Focus() does not work.
    How to fix this problem?

    Thanks a lot,

    Pengyu


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Focus

    Pengyu,

    It should work. Have you tried to set the tab order so that your
    control is first? You shouldn't have to call Focus.

    Hope this helps.

    --
    - Nicholas Paldino [.NET/C# MVP]
    - nick(dot)paldin o=at=exisconsul ting<dot>com

    "Pengyu Hong" <hong@stat.harv ard.edu> wrote in message
    news:%23uHKvRoj DHA.2216@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > I have several controls in a frame. I want one of controls to have the[/color]
    focus[color=blue]
    > (input focus) when the program starts. However cotrol.Focus() does not[/color]
    work.[color=blue]
    > How to fix this problem?
    >
    > Thanks a lot,
    >
    > Pengyu
    >
    >[/color]


    Comment

    Working...