This one has me quite stumped.
When dragging an image (from webpage) onto win form the above code is executed eventually, but the Image is always Nothing.
When I tried to use the DataFormats.Dib with something like:
I get a "parameter is not valid" error, which seams odd because DataFormats.Dib returns a MemoryStream?
Thanks for any help.
VB.NET:
ElseIf thisFormat = DataFormats.Dib.ToString Then
Dim im As Image
im = thisData.GetData(DataFormats.Bitmap, True)
Me.pictureboxData.Image = im
When dragging an image (from webpage) onto win form the above code is executed eventually, but the Image is always Nothing.
When I tried to use the DataFormats.Dib with something like:
VB.NET:
Dim bm As Bitmap = Bitmap.FromStream(thisData.GetData(DataFormats.Dib, True))
I get a "parameter is not valid" error, which seams odd because DataFormats.Dib returns a MemoryStream?
Thanks for any help.