Focus problem

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

    #1

    Focus problem

    Hello everyone,
    For some unknown reason, i can't focus into any of the control in one of my
    form in my Windows Application using the .Focus() method. I have no idea
    how could this happen, my other forms are fine, but just one of the forms
    couldn't focus to anything...
    Is there anything special that need to aware of when using .Focus() ?
    Any comments are welcomed!
    Thanks
    Tony


  • timtos

    #2
    Re: Focus problem

    You have to watch out where you put your control.Focus() ;
    For example putting it in the Load method won´t work!
    Put it perhaps in resize or even paint. Unfortunately I haven´t found out
    the best event to put it into but... It is working for me now.

    Greetings,
    timtos.

    "Tony" <liquid__snake@ hotmail.com> wrote in message news:OsDFxZ%23a DHA.3248@tk2msf tngp13.phx.gbl. ..[color=blue]
    > Hello everyone,
    > For some unknown reason, i can't focus into any of the control in one of my
    > form in my Windows Application using the .Focus() method. I have no idea
    > how could this happen, my other forms are fine, but just one of the forms
    > couldn't focus to anything...
    > Is there anything special that need to aware of when using .Focus() ?
    > Any comments are welcomed!
    > Thanks
    > Tony
    >
    >[/color]


    Comment

    Working...