I'm trying to remotly turn on/off my monitor using this code below. The problem is whenever I call the method that turn on/off the monitor from within the tcp asynchronous receive data method, the application just ends with no exception. So i put in a delegate but the same problem was still there.
What is the correct way of doing this?
Code:
public delegate void SendMessageCallback(int hWnd, int hMsg, int
Leave a comment: