Firstly my main method is like this:
static void Main(string[] args)
{
// New Form Thread
FormHandler myFormHandler = new FormHandler();
ThreadStart myThreadStart = new ThreadStart(myF ormHandler.Show Form);
Thread formWorkerThrea d = new Thread(myThread Start);
formWorkerThrea d.Start();
// Main Thread Handler
MainThreadHandl er threadHandler = new MainThreadHandl er();
}
This opens an instance of a form that I use as a main interface with a
notify icon. it then makes a new instance of MainThreadHandl er causing my
thread handles to start. This is a TCP listener. It creates a new worker
thred for every incoming connection (server). I would like each server
thread created to update or cause the updating of a field in the main Form.
In effect I would like a field on the main form that tells me how manny
connections I have currently open.
Any one know how I can do this?