Use the System.Drawing.Bitmap class. It has a constructor that accepts a stream object.
--
Regards,
Anand M
VB.NET MVP
http://www.dotnetindia.com
"LoSTMaN" wrote:
> Hi,
>
> I try to make a DragDrop to a Picturebox, to drag images from IE.
> But i'm stuck here :
> If (e.Data.GetDataPresent("DeviceIndependentBitmap")) Then
> PictureBox1.Image =
> e.Data.GetData("DeviceIndependentBitmap")
> End If
>
> The problem is, that a cannot make this because
> e.Data.GetData("DeviceIndependentBitmap") is a memorystream, what can i do
> to make a image with this ?
>
> I saw some example on the NET, but they were all in C#.
>
> Thanks in advance
>
>
>