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?
Herfried K. Wagner [MVP] - 05 Jan 2005 13:21 GMT
"scparker62" <scparker62@discussions.microsoft.com> schrieb:
> I'm writing a C# program that I want to have the first text box be in
> focus
[quoted text clipped - 4 lines]
> 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.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/