I use the microsoft.consultingservices.htmleditor.htmleditorcontrol in my application. It works fine except for handling the return key. Here's the problem:
- I first press a button outside the htmleditor control (so just any button on my form outside the htmleditor) so that this specific button gets the focus (and of course the click event of that button is handled)
- After this I click with my mouse pointer inside the textbox of the htmleditorcontrol so that I can type text in the box
- I type a few characters and they appear in the textbox as they should
- Now I press the return key to go to a new line
- Somehow this return key calls the click event of the button outside the htmleditor control that had the focus before I clicked in the htmleditor. No new line appears but instead the click event of the button outside the htmleditor is handled! It acts the very same way as when I press the return key while the button has still got the focus...
I don't really understand this because the other characters I type DO appear in the htmleditor textbox but when I press the return key... Maybe somehow the keys are previewed by the form and when it's a return key the button click event is handled??? I don't understand this however, because I've got keypreview for the form configured as FALSE.
Someone who can help me out here?
- I first press a button outside the htmleditor control (so just any button on my form outside the htmleditor) so that this specific button gets the focus (and of course the click event of that button is handled)
- After this I click with my mouse pointer inside the textbox of the htmleditorcontrol so that I can type text in the box
- I type a few characters and they appear in the textbox as they should
- Now I press the return key to go to a new line
- Somehow this return key calls the click event of the button outside the htmleditor control that had the focus before I clicked in the htmleditor. No new line appears but instead the click event of the button outside the htmleditor is handled! It acts the very same way as when I press the return key while the button has still got the focus...
I don't really understand this because the other characters I type DO appear in the htmleditor textbox but when I press the return key... Maybe somehow the keys are previewed by the form and when it's a return key the button click event is handled??? I don't understand this however, because I've got keypreview for the form configured as FALSE.
Someone who can help me out here?