The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

catrill (1) [Avatar] Offline
I have used CWinFormsControl to put a custom WinForms control onto an MFC dialog. However the Leave event of this control is not raised. I am using Visual Studio 2005.

To demonstrate the problem, I followed the example in C++/CLI In Action - Hosting a Windows Forms control in an MFC dialog. I attached to the DoubleClick event of the control and found it was raised. I attached to the Leave event in a a similar way but it was not raised.

What options are there to get notification of this event?



Also posted at MSDN here: