>Hi,
>
>I have a form with a pageframe and 3 pages, in page1's ACTIVATE event I have
>
>This.edtBox1.SetFocus()
>
>so that each time the page is brought on top, the EDITBOX edtbox1 will be selected automatically.
>
>I get what I want when
>1) The form is intially launched.
>2) If I click to page1 from another page.
>
>But if I press Ctrl+Tab to switch to page1 from another page, the edtBox1 won't get focus!
>when I use the keyboard to switch to that page why is it different from mouse click or am I doing something wrongly?
Have you tried:
In the GotFocus() event of Page 1:
This.edtBox1.SetFocus()
so that every time page 1 gets the focus, either from clicking its tab, or hot-keying to it, it passes on the focus to the editbox.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.