None of this is making a difference. I found that the control works
fine when it is used within a C# application. The problem occurs when
it is used within a C++ application. It seems that simple keys like
"Z" are routed to the sub-control that has focus while the "CTRL+Z"
key strokes are routed to the topmost control. Strange...
Noe of what is making a difference? If you read the article, you would
notice that it mentions several specific alternative methods used to capture
keyboard input, and details which methods should be used to capture
different kinds of keyboard input.
In particular, I have used the ProcessCmdKey method to capture any keyboard
input at the Form level before it is processed any further. This method
captures *all* keyboard input, and the return value of it determines whether
the key willl be further processed (works like CancelEventArgs). See
http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.processcmd
key.aspx
for more information on this method, and be sure and fully read the article
I pointed you to, as it details which methods to use in different
circumstances.

Signature
HTH,
Kevin Spencer
Microsoft MVP
Digital Carpenter
A man, a plan, a canal,
a palindrome that has gone to s**t.
--
HTH,
Kevin Spencer
Microsoft MVP
Digital Carpenter
A man, a plan, a canal,
a palindrome that has gone to s**t.
> None of this is making a difference. I found that the control works
> fine when it is used within a C# application. The problem occurs when
[quoted text clipped - 31 lines]
>> > Thanks,
>> > Mike
MLM450@hotmail.com - 19 Sep 2006 14:58 GMT
Well, I don't know where your attitude came from, but I don't
appreciate it. How nice of you to assume that I ignored the article. I
admit that I did not read every syllable, but I did look it over and
tried some of what it showed. That is what did not work. However, I
will look it over again to be sure I didn't miss something important.
ProcessCmdKey doesn't work either. Perhaps because I am using the
control in a CWinFormsControl, I am not sure.
> Noe of what is making a difference? If you read the article, you would
> notice that it mentions several specific alternative methods used to capture
[quoted text clipped - 65 lines]
> >> > Thanks,
> >> > Mike
Kevin Spencer - 19 Sep 2006 21:21 GMT
CWinFormsControl is not a managed class. It is MFC (C++). It will not have
the same properties or methods as a System.Windows.Forms.Form class
instance. As this is a Managed newsgroup, I naturally assumed that you were
working with a managed Form. At this point, I have no idea what (else)
you're working with, or how your app is designed. It sounds like perhaps
some mixture of managed and unmanaged code, but that's just a guess, and
beyond that is even more of a guess. Therefore, I can't help any further.

Signature
HTH,
Kevin Spencer
Microsoft MVP
Digital Carpenter
A man, a plan, a canal,
a palindrome that has gone to s**t.
> Well, I don't know where your attitude came from, but I don't
> appreciate it. How nice of you to assume that I ignored the article. I
[quoted text clipped - 83 lines]
>> >> > Thanks,
>> >> > Mike