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.

Label / TextBox Hot Keys

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
scparker62 - 05 Jan 2005 06:43 GMT
I'm trying to write a C# program that will allow the user to navigate to
different text boxes using Hot Keys (ie Alt+P).  I also want to have the
label for the text box display the hot key for the associated text box.  I
know how to do that, I just don't know how to associate the Hot Key with
getting the appropriate text box to focus.
Carlos J. Quintero [.NET MVP] - 05 Jan 2005 10:43 GMT
As long as the TabIndex property of labels and textboxes is correct, Windows
provides that mechanism automatically. That is, if you have:

Label1, "&My textbox", TabIndex = 0
TextBox1, TabIndex  = 1

Then pressing Alt+M moves the focus to the next control of Label1 which is
TextBox1, since Label1 can not receive it.

Signature

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com

> I'm trying to write a C# program that will allow the user to navigate to
> different text boxes using Hot Keys (ie Alt+P).  I also want to have the
> label for the text box display the hot key for the associated text box.  I
> know how to do that, I just don't know how to associate the Hot Key with
> getting the appropriate text box to focus.

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.