Here is what I'm trying so far:
This is code I got off MSDN, translated to VB. I comment out the e As PaintEventArgs as I am trying to show an image on a page... Am I going in the right direction?
Currently I get the message that my Dim myCallback line is wrong, saying that GetThumbnailImageAbort is a delegate type. I don't know what this error means. Please help?!
Code:
Public Function ThumbnailCallback() As Boolean
Return False
End Function 'ThumbnailCallback
Public Sub my_GetThumb(pic As String, e As PaintEventArgs) '
Dim myCallback As New System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback)
Dim myOrigBitmap As New Bitmap(pic)
Dim myNewBitmap As System.Drawing.Image = myOrigBitmap.GetThumbnailImage(40, 40, , IntPtr.Zero)
Return myNewBitmap
e.Graphics.DrawImage(myThumbnail, 150, 75)
End Sub 'Example_GetThumb
This is code I got off MSDN, translated to VB. I comment out the e As PaintEventArgs as I am trying to show an image on a page... Am I going in the right direction?
Currently I get the message that my Dim myCallback line is wrong, saying that GetThumbnailImageAbort is a delegate type. I don't know what this error means. Please help?!