Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.Web.Controls
Public Sub WebThumbnailViewer_Insert(ByVal webThumbnailViewer As WebThumbnailViewer)
   '' Check if there is at least one thumbnail to replace.
   If (WebThumbnailViewer.Count > 1) Then
      '' Remove the first thumbnail image.
      WebThumbnailViewer.Remove(0, 0)
      ' insert a new image into as the first thumbnail.
      webThumbnailViewer.Insert("Resources\image1.jpg", 1, 1, 0)
   End If
End Sub
             
   
     
            using Leadtools;
using Leadtools.Codecs;
using Leadtools.Web.Controls;
public void WebThumbnailViewer_Insert(WebThumbnailViewer webThumbnailViewer)
{
   // Check if there is at least one thumbnail to replace.
   if(webThumbnailViewer.Count > 1)
   {
      // Remove the first thumbnail image.
      webThumbnailViewer.Remove(0, 0);
      // insert a new image into as the first thumbnail.
      webThumbnailViewer.Insert(@"Resources\image1.jpg", 1, 1, 0);
   }
}