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

W

Wally Highsmith

keyData == (Keys.Control | Keys.Shift | Keys.L) used to trap this
combination in the ProcessDialogKey method
Why does this combination no longer work?
 
G

Guest

Hi Wally,
the ProcessDialogKey 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.
 
W

Wiktor Zychla [C# MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top