Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2005

Tip: Looking for answers? Try searching our database.

Getting a text box to focus on application start-up

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
scparker62 - 05 Jan 2005 06:49 GMT
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/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.