G
Guest
I am using Managed C++ with a CFormView and a MaskedTextBox and have used
MAKE_DELEGATE to sink the LostFocus event of this control.
I have other events I've sinked off this control and they all work fine,
however, the LostFocus does not fire.
I found Scribble online and they do the same thing I did, however, when I
used this code in Visual Studio 2005 the LostFocus event didn't get fired
either.
My example code looks like this:
m_cValue->LostFocus += MAKE_DELEGATE( System::EventHandler, OnLostFocus );
In DoDataExchange:
DDX_ManagedControl(pDX, IDC_VALUE, m_cValue);
CWinFormsControl<System::Windows::Forms::MaskedTextBox> m_cValue;
If I run into problems, I code it in C# and then convert it to C++. It
works fine in C#, however, my managed C++ does not. Is there something I've
implemented incorrectly?
Thanks,
Carmon
MAKE_DELEGATE to sink the LostFocus event of this control.
I have other events I've sinked off this control and they all work fine,
however, the LostFocus does not fire.
I found Scribble online and they do the same thing I did, however, when I
used this code in Visual Studio 2005 the LostFocus event didn't get fired
either.
My example code looks like this:
m_cValue->LostFocus += MAKE_DELEGATE( System::EventHandler, OnLostFocus );
In DoDataExchange:
DDX_ManagedControl(pDX, IDC_VALUE, m_cValue);
CWinFormsControl<System::Windows::Forms::MaskedTextBox> m_cValue;
If I run into problems, I code it in C# and then convert it to C++. It
works fine in C#, however, my managed C++ does not. Is there something I've
implemented incorrectly?
Thanks,
Carmon