Suppose that you have an image in C# app, and you want to transfer the image to VB.NET app, placed in PictureBox1.
If both applications runs in same computer, you can use Clipboard.
Code for VB.NET app:
Private Sub ReceiveImage(ByVal state As Object)
Dim hWait As New System.Threading.EventWaitHandle(False, System.Threading.EventResetMode.ManualReset, "Global\ImageTransfer")
Do
hWait.WaitOne()
Me.Invoke(New System.Threading.ThreadStart(AddressOf GetImageFromClipboard))
hWait.Reset()
Loop
End Sub
Private Sub GetImageFromClipboard()
PictureBox1.Image = Clipboard.GetImage()
End Sub
add this line in Form Load event:
System.Threading.ThreadPool.QueueUserWorkItem(New System.Threading.WaitCallback(AddressOf ReceiveImage))
To send an Image from C# app:
Image anImage;
Clipboard.SetImage(anImage);
System.Threading.EventWaitHandle.OpenExisting("Global\\ImageTransfer").Set();