Hi everyone,
I am facing problems in updating controls using another thread created by another class (not Form1).
I am able to update controls of main form by another thread if that thread was created by Form1 or main form, but when it is created by other class, i am not able to figure out how to solve this problem
I have picturebox in my maiin form. I am keeping one thread for listening TCP connections. Once a tcp connection is established, i m creating object of another class (client.cs) and using this class, I am creating another thread for this newly connected client.
Client will give information to my server and using this information, I have to draw one figure in main form for corresponding client.
I tried creating new instance of form1 but I realised I was wrong so now I am stuck.
Can anyone please tell me what should i do?