cursor - VB.net : Wait a bit before right clicking -


private sub button2_click(sender object, e eventargs) handles button2.click     me.cursor = new cursor(cursor.current.handle)     cursor.position = new point(800, 500)      'mouse_event waitfor2 seconds???       cursor.position = new point(800, 500)     mouse_event(&h8)     cursor.position = new point(800, 500)     mouse_event(&h10) end sub 

i trying make cursor wait few seconds before right-clicking. i've searched , found complicated solutions not want do.

can done simple mouse event?

i'm not sure mouse_event doing, should able use timer wait 2 seconds. add timer form (for example dragging 1 toolbox onto form in designer. , use code.

private sub button2_click(sender object, e eventargs) handles button2.click     me.cursor = new cursor(cursor.current.handle)     cursor.position = new point(800, 500)      timer1.interval = 2000     timer1.start() end sub  private sub timer1_tick(sender object, e eventargs) handles timer1.tick     cursor.position = new point(800, 500)     mouse_event(&h8)     cursor.position = new point(800, 500)     mouse_event(&h10)     timer1.stop() end sub