Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
Suppose their are two pc's connected in network to server & they are tranfering their desktop images to server & on server the images recieved are displayed using picturebox.
So, i want to do is mapping of picturebox to particular client i.e images from that client only should be displayed in picturebox1 & images from client2 in picturebox2 & so on...
Plz help if anyone have any sort of idea...
Thanks...
Posted
Comments
Manfred Rudolf Bihy 12-Apr-11 16:00pm    
So what is your issue?
What difficulties are you eperiencing?
Zeeshan17 13-Apr-11 1:58am    
suppose client1 connects to server then picturebox is created dynamically & images from client1 is recieved in picturebox1 but whenever client2 connects picturebox2 is created & that picturebox alternatively displays both clients images & picturebox1 doesn't display anything.

1 solution

It's not clear what mechanism you are using for client-server communication. That does not matter though, just have each client send in an identifier that the server can use to uniquely identity it. This way the server UI will know which picturebox to use for each received image.
 
Share this answer
 
Comments
Zeeshan17 13-Apr-11 2:00am    
I am using async TCP connection & how can i uniquely identify a client.If possible please give some example.
Nish Nishant 13-Apr-11 9:00am    
The client IP sounds like a good one to use.
Zeeshan17 13-Apr-11 10:18am    
Ok IP using as identifier then how i map that particular picturebox to that particular IP.Plz if possible show some alogrithm.bye the way thanks for ur helpful guidance.
Nish Nishant 13-Apr-11 10:19am    
Just maintain a map in your UI app. A Dictionary<> should work well for you to map an IP address to a picturebox control.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900