we have some events for mouse
MouseEnter,MouseMove,MouseHover,MouseDown,MouseUp, MouseLeave
you can change the focus to another control in such events
(i.e textBox1.Focus();)
(or you can derive from richTextBox and in its WndProc function hook mouse messages and kill the focus..)
_____________
Mehdi.
software student.
|