954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Winsock image sending

Hi all
My code for the server side :

Dim bmp As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height, Imaging.PixelFormat.Format24bppRgb)
            Dim gfx As Graphics = Graphics.FromImage(bmp)
            gfx.CopyFromScreen(0, 0, 0, 0, My.Computer.Screen.Bounds.Size, CopyPixelOperation.SourceCopy)
            Winsock1.SendData(bmp)


And for the client side in the DataArrival event :

On Error Resume Next
        Dim img As Image
        Winsock1.GetData(img)
        PictureBox1.Image = img


But the picture never come in the picturebox,
Also ivé double checked that the connection is ok,
Help please :confused:

bninja
Newbie Poster
10 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

Help please i'm confuzed!

bninja
Newbie Poster
10 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

Up
Help please ..

bninja
Newbie Poster
10 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: