G
Guest
Hi,
I am wondering if someone knows how to trigger a mousdown event in a TextBox
from code as if someone clicked the textbox.
I have tried to derive a TextBox and manualy call the RaiseMouseEvent metod
whith a propper MouseEventArgs, but this doesnt work the way I want. The
thing is that tre text cursor doesn´t get positioned in the textboxs text
acording to the click event coordinates. it allways gets positioned first in
the textboxs text.
Does someone know a way to do this?
Thanx!
Peter
I am wondering if someone knows how to trigger a mousdown event in a TextBox
from code as if someone clicked the textbox.
I have tried to derive a TextBox and manualy call the RaiseMouseEvent metod
whith a propper MouseEventArgs, but this doesnt work the way I want. The
thing is that tre text cursor doesn´t get positioned in the textboxs text
acording to the click event coordinates. it allways gets positioned first in
the textboxs text.
Does someone know a way to do this?
Thanx!
Peter