How to build screen event

I use the visual studio build program and use the pc screen as monitor.
I load some picture on the screen,I want drag the screen from left to right to delete the screen with the mouse.But I don’t know how to create the screen event.
Would you like to help?

Take a look at the events; I think the drag-related ones will be useful.

Thank you very much I try it.