I want to do something really simple.
I have a form and a class which handles my network layer
The form has an instance of the network class as a member and initialises
the network layer.
Inside the network class it then starts dealing with connections and
listening (server).
When a connection is made i have a method in the network class that is
called.
On the form i have a listbox. I want the method in the network class to add
an item to the listbox on the form.
I thought the best way to do this was delgates but it seems delegates are
only good for raising events within the classitself and not out onto forms
tha contain it.
Is there anyway to attach an event from within my network class to the
listbox on the form so that whenever that event is fired i can tell the
listbox to catch it and update itself?
Thanks