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 / October 2005

Tip: Looking for answers? Try searching our database.

handling f3 key

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ike - 27 Oct 2005 12:03 GMT
Hello,

I have a form and when the user presses the F3 key I want to set the focus
to a textbox where the user can enter a search query.

I figured this had to be really straightforward, but it turns out it isn't.

I tried putting an eventhandler KeyDown on the form, but it never gets
called for the F3 key.
Also tried KeyUp, KeyPress, ProcessDialogKey, ProcessDialogChar,
ProcessDialogCmd, PreProcessMessage. Nothing worked.
I also tried it with KeyPreview set to true on the form.

Strange thing is, that Shift-F3 works, but F3 doesn't.

Now I don't know what to do else.

Any ideas?

Best regards,
Ike Casteleyn
ike - 27 Oct 2005 13:06 GMT
Hello,

Since everything works fine on an empty form, I did some more investigation.

My toolbar was blocking the F3 key from happening.

Best regards,
Ike

> Hello,
>
[quoted text clipped - 17 lines]
> Best regards,
> Ike Casteleyn

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.