In my project i am using sockets between users to communicate and i have to send a picturebox one to another.
Here is how i use picturebox:
PictureBox pictureBox1 = new PictureBox();
ScreenCapture sc = new ScreenCapture();
// capture entire screen, and save it to a file
Image img = sc.CaptureScreen();
// display image in a Picture control named pictureBox1
pictureBox1.Image = img;
And i use my sockets to send like this:
byte[] buffer = Encoding.ASCII.GetBytes(textBox1.Text);
s.Send(buffer);
But i couldn't figure out how i can send pictureBox1.Hope you can help, thanks in advance.