Possible Duplicate:
How can I make my own event in C#?
Sir, I have some queries regarding events...
- I want to write my own event that should be fired when user click 3 times on a button?
- In a client server application a client is connected to server, now if client disconnects then i want it must trigger an event on the server notifing that it is disconnected. I can achieve this using timer or some loop and a different thread. This thread continuously check the connection of the client. That is it. But it is somthing like polling mechanism. I want to write something like interrupt mechanism. I mean i dont want to use timer or loop. When a client disconnects willingly or unwillingly either from client side or server side my server should notify that client is disconnected. Please dont tell about how to make custom events. Please help... Thanks...