Click here to Skip to main content
13,192,207 members (34,286 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have two forms in single windows Application and picturebox in each form. How to transfer image from picturebox in form1 to picturebox in form2 using TCP help with solution.

Thanks in advance
Posted 14-Feb-13 3:07am
Updated 14-Feb-13 3:35am
Chris Reynolds (UK) 14-Feb-13 10:08am
Is there a reason you want to do this using TCP as there are other, simpler, ways

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Soooo.....first, you're NOT going to get a ready made solution for this as you're transport method in the same application is utterly ridiculous and WAY TOO MUCH work for something so simple to do.

You're saying you want to implement a TCP server and client in the same application just so you can stop yourself from doing this:
Dim form2 As New Form2

and in Form2...
Public Sub SetPictureBoxImage(image As Bitmap)
    PictureBox2.Image = image
End Sub
ProgramFOX 14-Feb-13 12:25pm
My 5!

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171017.2 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100