well thats not really what i was asking but here ill try explain it again.

okay so i made a client and server program both of them have winsock. but what am tryin to do is get my server to send me back data to the client. and from the client i want to put the data to a screenshot form . but i don't know exactly how i would send it to the form i want without putting another winsock on it. sorry if its not clear. heres my code at the bottom:


CLIENT SIDE:
Private Sub sock1_DataArrival(ByVal bytesTotal As Long)

Dim Data As String

Call sock1.GetData(Data, vbString)

If Data = "screenshot" Then
screenshot <--- what would i put here to make it goto my screenshot form.
End If

End Sub

SERVER SIDE:

Private Sub sock1_DataArrival(ByVal bytesTotal As Long)
Dim x As String

If x = "screenshot" Then
keybd_event vbKeySnapshot, 0, 0, 0
DoEvents

keybd_event vbKeySnapshot, 0, &H2, 0
sock1.SendData "screenshot"
End If

End Sub