| | |
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 2005 2008 access account array basic beginner bing browser button buttons center check code crystalreport cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic dropdownlist excel fade file-dialog filter forms ftp generatetags google hardcopy html images input insert intel internet mobile monitor ms net networking objects open output panel passingparameters pdf picturebox picturebox1 port position print printing problem save searchbox searchvb.net select serial settings shutdown soap sqlserver survey table tcp temperature text textbox timer timespan toolbox transparency trim update user vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode year





