S
Steve Baer
I posted this on the msdn forums. Sorry for crossposting, but I haven't
received any answer and I want to try here before calling someone at
Microsoft.
We have an MFC application that supports both MFC and .NET plug-ins. If
plug-ins want to use docking dialogs, we embed UserControls in our CCtrlBar
derived classes. All of this works great except for the .NET TextBoxes. The
TextBoxes will display correctly and receive input; the only problem is that
they don't receive KeyDown events for "Enter" and "Escape" keys.
I have written a simple example with VC2005 that displays this problem by
embedding a multiline TextBox on a CDialogBar. The TextBox will not allow
for multiline input because the "Enter" KeyDown event is getting eaten
somewhere along the way. I posted the project at
http://en.wiki.mcneel.com/content/upload/files/WinFormsCtrlBar.zip
in case anyone is interested.
My question is:
How do I get a multiline WinForms textbox to work if it is a child of a
CDialogBar?
Any help would be appreciated. Thanks,
-Steve
Steve Baer
Robert McNeel & Associates
received any answer and I want to try here before calling someone at
Microsoft.
We have an MFC application that supports both MFC and .NET plug-ins. If
plug-ins want to use docking dialogs, we embed UserControls in our CCtrlBar
derived classes. All of this works great except for the .NET TextBoxes. The
TextBoxes will display correctly and receive input; the only problem is that
they don't receive KeyDown events for "Enter" and "Escape" keys.
I have written a simple example with VC2005 that displays this problem by
embedding a multiline TextBox on a CDialogBar. The TextBox will not allow
for multiline input because the "Enter" KeyDown event is getting eaten
somewhere along the way. I posted the project at
http://en.wiki.mcneel.com/content/upload/files/WinFormsCtrlBar.zip
in case anyone is interested.
My question is:
How do I get a multiline WinForms textbox to work if it is a child of a
CDialogBar?
Any help would be appreciated. Thanks,
-Steve
Steve Baer
Robert McNeel & Associates