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

javascript - How to diff two immutable objects -

c# - How can I have the VS Debugger break in the correct location for exceptions thrown in Async methods in a Console App? -

javascript - React.js: onClick function from child to parent -