Getting a text box to focus on application start-up

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm writing a C# program that I want to have the first text box be in focus
on start-up. I am using a Text-to-Speech engine to speak the contents of
each text box, so when the program starts, I would like to be able to speak
the contents of the first text box. I've hooked the text box event Enter to a
method, but it is not called when the program starts. Any ideas?
 
scparker62 said:
I'm writing a C# program that I want to have the first text box be in
focus
on start-up. I am using a Text-to-Speech engine to speak the contents of
each text box, so when the program starts, I would like to be able to
speak
the contents of the first text box. I've hooked the text box event Enter
to a
method, but it is not called when the program starts. Any ideas?

Did you assign the smallest tab index to the textbox? Then it will be
focussed automatically when the form is shown.
 
Back
Top