Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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
Edited 14-Feb-13 3:35am
v2
Comments
Chris Reynolds (UK) at 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
good
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
    form2.SetPictureBoxImage(PictureBox1.Image)
and in Form2...
    Public Sub SetPictureBoxImage(image As Bitmap)
        PictureBox2.Image = image
    End Sub
  Permalink  
Comments
ProgramFOX at 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
0 OriginalGriff 405
1 Sergey Alexandrovich Kryukov 220
2 Peter Leow 215
3 Maciej Los 195
4 DamithSL 174


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