Click here to Skip to main content
16,019,957 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have a C# DLL which is invoked from a C++ application. The C# Winform window sits on top of the C++ Main Window. Noticed that we are unable to capture the ProcessCmdKey method. Any idea why we are unable to trigger this?

C#
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)


What I have tried:

protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
Posted
Updated 11-Jul-17 7:15am
v2
Comments
Richard MacCutchan 11-Jul-17 12:51pm    
You need to provide more information. Where is this method and how does it relate to the other windows?
Guru16 11-Jul-17 12:59pm    
The method resides in Winform (Form1.cs). The C++ application invokes a method in c# Application.cs which in turn shows our Winform.
[no name] 11-Jul-17 13:28pm    
Guru16 11-Jul-17 13:56pm    
It's set to true.
[no name] 11-Jul-17 14:20pm    
You wrote "The C# Winform window sits on top of the C++ MainWindow", what it means exactly? Is c# window's parent set to the C++ MainWindow?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900