matthewking
Programmer
Hi,
How would I declare an event in a class 'client' and raise the event at any time in the class, and have the functionality for the event in the form that creates an instance of the class 'client' ?
basically, I have a server class which is also the form, and I have a clientservice class, and I want to raise events like connected, disconnected etc to the form, so I can drop the clientservice from the array of connected clients.
Thanks in advance, Matt.
How would I declare an event in a class 'client' and raise the event at any time in the class, and have the functionality for the event in the form that creates an instance of the class 'client' ?
basically, I have a server class which is also the form, and I have a clientservice class, and I want to raise events like connected, disconnected etc to the form, so I can drop the clientservice from the array of connected clients.
Thanks in advance, Matt.