make textbox active on showdialog

  • Thread starter Thread starter wanwan
  • Start date Start date
W

wanwan

is there a way to have the keyboard cursor active in a textbox on
showdialog?

Thanks
 
According to a post about 4" up the list in my OE,

myTextBox.Select() will bring the textbox into focus.


Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
 
wanwan said:
is there a way to have the keyboard cursor active in a textbox on
showdialog?

Set its TabIndex to 0.

As the first control in the Tab Order, it will automatically get focus
when the dialog is shown.

HTH,
Phill W.
 

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

Back
Top