make textbox active on showdialog

  • Thread starter Thread starter wanwan
  • Start date Start date
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.
 
Back
Top