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:

Help please i'm confuzed!

Up
Help please ..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.