J
Joshua Russell
Firstly my main method is like this:
static void Main(string[] args)
{
// New Form Thread
FormHandler myFormHandler = new FormHandler();
ThreadStart myThreadStart = new ThreadStart(myFormHandler.ShowForm);
Thread formWorkerThread = new Thread(myThreadStart);
formWorkerThread.Start();
// Main Thread Handler
MainThreadHandler threadHandler = new MainThreadHandler();
}
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 MainThreadHandler 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?
static void Main(string[] args)
{
// New Form Thread
FormHandler myFormHandler = new FormHandler();
ThreadStart myThreadStart = new ThreadStart(myFormHandler.ShowForm);
Thread formWorkerThread = new Thread(myThreadStart);
formWorkerThread.Start();
// Main Thread Handler
MainThreadHandler threadHandler = new MainThreadHandler();
}
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 MainThreadHandler 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?