SetFocus to a text box on a sub form after loading complete

G

Guest

I need to be able to setfocus to a sub forms text box AFTER the Main form and
the Sub form is loaded. It doesn't matter what event I place the 'setfocus'
- it doesnt do it. In fact when I press the tab key (only text boxes on sub
form showing) the cursor is invisible and is no where to be found. I imagine
I'm really on the main form (still) - somewhere. Does anyone have the "which
event to use on the main form to place the cursor in a text box on the sub
form" after all is said and done.

thanks for any help....
 
G

GH

I need to be able to setfocus to a sub forms text box AFTER the Main form and
the Sub form is loaded. It doesn't matter what event I place the 'setfocus'
- it doesnt do it. In fact when I press the tab key (only text boxes on sub
form showing) the cursor is invisible and is no where to be found. I imagine
I'm really on the main form (still) - somewhere. Does anyone have the "which
event to use on the main form to place the cursor in a text box on the sub
form" after all is said and done.

thanks for any help....

Mike,

The Form's OnCurrent event should allow you to set the focus to the
sub form. Also, make sure the specific control on your sub form that
you want to get initial focus is set to TabIndex 0.

- GH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top