| | |
KeyDown/Key Preview...
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2007
Posts: 17
Reputation:
Solved Threads: 0
Okay,
How do I make MainFormKeyDown absolute GOD over everything else? I have a tabpage control, and I want CTRL+Tab to ALWAYS switch tabs. But several tabs have a Multiline edit controls that "WantTabs". I added into the EditKeyDown a handler for "Shift+Tab" to make it go back from a previous tab. But no matter what I do in the MainFormPreviewKeyDown, MainFormKeyDown, or InputEditKeyDown, I never receive any signals for Ctrl+Tab. WTF? Is KeyPreview = True a Lie, because it sure seems that way on my end.
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
How do I make MainFormKeyDown absolute GOD over everything else? I have a tabpage control, and I want CTRL+Tab to ALWAYS switch tabs. But several tabs have a Multiline edit controls that "WantTabs". I added into the EditKeyDown a handler for "Shift+Tab" to make it go back from a previous tab. But no matter what I do in the MainFormPreviewKeyDown, MainFormKeyDown, or InputEditKeyDown, I never receive any signals for Ctrl+Tab. WTF? Is KeyPreview = True a Lie, because it sure seems that way on my end.
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
•
•
•
•
Is KeyPreview = True a Lie, because it sure seems that way on my end.
The truth does not change according to our ability to stomach it.
•
•
Join Date: Aug 2007
Posts: 17
Reputation:
Solved Threads: 0
•
•
•
•
It's not a lie, but you might be confused about when and how a control captures key strokes. I think you want a global winndows hook
MainForm.KeyPreview is a binary equation.
1: Either it Previews EVERY key
or
2: It doesn't.
If it doesn't then it's a lie, and doesn't do what it says it should do.
In Delphi when you have keypreview for the main form it receives EVERY key code before any other control in the application. That's what "KeyPreview" means. But I guess I shouldn't be surprised, since KeyPreview has never worked for VBA ever, so why should they fix it now. *shrug*
A global windows hook is a bit overkill, because i'm not trying to link a key command into the system, just into my application.
*shrug*
Jaeden "Sifo Dyas" al'Raec Ruiner
![]() |
Similar Threads
- arrow key detection on msflexgrid (Visual Basic 4 / 5 / 6)
- Tic Tac Toe help (Java)
- please anybody help to solve keydown event for enter button problem (HTML and CSS)
- Validation help (Visual Basic 4 / 5 / 6)
- new window in Internet Explorer is always blank (Web Browsers)
- Keyboard Issue: New IE window opens when using the "L" key. (Viruses, Spyware and other Nasties)
- deleting registry key for error code 19 (Windows NT / 2000 / XP)
- Output, Print Preview, JARs/Bean? - Please Help (Java)
- Disable Search Preview in Internet Explorer, How? (Web Browsers)
- Don't Ignore the Windows Logo Key (Windows tips 'n' tweaks)
Other Threads in the VB.NET Forum
- Previous Thread: Cancel Button
- Next Thread: How do I design custom installation in vb.net
| Thread Tools | Search this Thread |
.net .net2008 2008 access add advanced application array basic beginner browser button buttons center click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic employees excel exists fade filter forms generatetags html images input intel internet listview map mobile module monitor msaccess mysql net number objects open pan panel pdf picturebox picturebox2 port position print printing printpreview problem regex reuse right-to-left save search searchvb.net serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winforms wpf wrapingcode xml year





