GdPicture.NET Reference Guide
FileTypeNotSupported Event (ThumbnailEx)

GdPicture14 Namespace > ThumbnailEx Class : FileTypeNotSupported Event
Occurs when a file type is not supported by the control. It is possible to provide a specific Bitmap to be used in the item through the CustomBitmap property.
Public Event FileTypeNotSupported As ThumbnailEx.FileTypeNotSupportedEventHandler
public event ThumbnailEx.FileTypeNotSupportedEventHandler FileTypeNotSupported
public event FileTypeNotSupported: ThumbnailEx.FileTypeNotSupportedEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event ThumbnailEx.FileTypeNotSupportedEventHandler* FileTypeNotSupported
event ThumbnailEx.FileTypeNotSupportedEventHandler^ FileTypeNotSupported
Implementing a custom bitmap for unknown file type.
Private Sub ThumbnailEx1_FileTypeNotSupported(ByVal FilePath As String, ByRef CustomBitmapID As Integer, ByRef ReleaseBitmap As Boolean) Handles ThumbnailEx1.FileTypeNotSupported
ReleaseBitmap = True
Using gdPictureImaging As New GdPictureImaging
   CustomBitmapID = gdPictureImaging.CreateGdPictureImageFromFile("unsupported.png")
End Using
End Sub
See Also


ThumbnailEx Class
ThumbnailEx Members