c# - How to reroute click event to a double click? -


i'm trying reroute click event act double click instead. example if double click textbox select text can edit, want single click same.

is possible reroute events , if how 1 so? thanks!

inside single click event handler, following:

var newmouseevent = new mousebuttoneventargs(mouse.primarydevice, 0, mousebutton.left)  {      routedevent = control.mousedoubleclickevent }; mytextbox.raiseevent(newmouseevent); 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -