| | |
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 30minutes 2005 2008 access account arithmetic array basic bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dropdownlist excel fade file-dialog filter folder ftp generatetags google gridview hardcopy images input insert intel internet mobile monitor ms net networking objects output panel passingparameters peertopeervideostreaming picturebox picturebox1 port position print printing problem problemwithinstallation project save searchbox searchvb.net select serial shutdown soap survey table tcp temperature text textbox timer timespan toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year





