473,569 Members | 2,790 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ProcessDialogKe y keyData == (Key.Control | Key.Shift | Key.L) is no longer trapped

keyData == (Keys.Control | Keys.Shift | Keys.L) used to trap this
combination in the ProcessDialogKe y method
Why does this combination no longer work?
Jan 29 '06 #1
2 5051
Hi Wally,
the ProcessDialogKe y method is used to handle the Return and Escape keys
in a dialog window. The Microsoft documentation states that this method will
not handle any processing for ALT or CTRL modifiers. You should put your key
processing inside the ProcessCmdKey method instead.

To your question I don't know if it worked in 1.1 (I only currently have
2.0 installed) but the 1.1 documentation looks the same as the 2.0
documentation and I doubt Microsoft would have made a breaking change like
that to the semantics of an existing function.

Hope that helps
Mark Dawson
http://www.markdawson.org.

"Wally Highsmith" wrote:
keyData == (Keys.Control | Keys.Shift | Keys.L) used to trap this
combination in the ProcessDialogKe y method
Why does this combination no longer work?

Jan 30 '06 #2
> documentation and I doubt Microsoft would have made a breaking change like
that to the semantics of an existing function.


unfortunately, we had such breaking changes in the past so there's nothing
to doubt.

Wiktor Zychla

Jan 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

44
4681
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in the body of the page I put the next code: <BODY onkeydown='notOpenNewWindow();'>
8
2940
by: MLH | last post by:
I use a mouse-down procedure to trap right mouse clicks and CTRL-Right mouse clicks. Running the procedure must put honey or some other sticky substance into my keyboard because subsequent RightMouseClicks run as if they were CTRL-RightMouseClicks I have to close the form and reopen it to clear this behavior. Then, after the first...
1
4360
by: Jim | last post by:
I'm missing something, because I'm just not understanding this process. I'm using a Form (no derived controls or derived forms) and I want to catch the arrow keys. I've got the overridden ProcessDialogKey written (see below), but it isn't called when I press the appropiate keys. How do I call it?? thanks, Jim protected override bool...
1
11662
by: Paul | last post by:
Hi, I am still confused the different between ProcessCmdKey and ProcessDialogKey. When to use it? I write a simple user control and these 2 override functions looks the same to me. protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { const int WM_KEYDOWN = 0x100; const int WM_SYSKEYDOWN = 0x104;
2
34221
by: Alberto | last post by:
Could you tell me witch is the difference between keycode, keyvalue and keydata in a keydown event? keyvalue is always the ascii code? thank you
7
7189
by: Csaba Gabor | last post by:
I'd like to detect the shift key when a button is "clicked" in Firefox/Mozilla. If the button is clicked with the mouse, no problem. However, if the onclick event is keyboard originated, then my method is not working. Same thing for SELECT elements. The simple web page below shows the issue. Click with the mouse while holding down the...
0
2907
by: Martijn Mulder | last post by:
/* I override IsInputKey() to direct the Arrow Keys (Cursor Keys) to my custom System.Windows.Forms.Control. But, holding down the Shift-Key prevents the Arrow Keys from coming through. How can I intercept the Arrow Keys when holding down the Shift Key? */
1
2228
Shashi Sadasivan
by: Shashi Sadasivan | last post by:
Hi all, Ive ran into a problem where i convertted the keyData to a string and stored it in the database. But am unable to convert it back to a KeyData for comparisn. Is there a way to do that? Is there a way to store a Keys enum value as a key, and enumerate throug each key. this way i can compare which key it is, and assign it to the...
2
1564
by: Dean Slindee | last post by:
I have placed this statement in the form_load event: Me.KeyPreview = True and created this event handler and set a breakpoint on e.Handled = False: Private Sub frmJusticeClientReferral_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs) Handles MyBase.KeyDown e.Handled = False End Sub But, a tabbing out of a combobox or a textbox...
0
7694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7666
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6278
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.