Hi,

I am facing a problem with the handling of ESC key in user controls
created in VB.

I have a multiline text box in the control. Also the text box is enabled
since I have to select/copy text in it.

Next I place the control in an MFC dialog. I do not need OK and Cancel
buttons on it and so I remove them and the corresponding handlers. Now,
when I click in the text box and then press ESC key, the text box
disappears and the application crashed.

Strangely, when I used the control in a VB form this problem was not
occuring.

I am using VB 6.0 and VC++ 6.0.

If any can let me know how this may be resolved with VC++, it is greatly
appreciated.

Thanks in Advance
Patil