packages/Windows API Code Pack 1.1/source/Samples/Shell/TabbedThumbnailDemo/CS/Winforms/Form1.cs
/// <summary>
/// Helper method to update the thumbnail preview for a given tab page.
/// </summary>
/// <param name="tabPage"></param>
Helper method to update the thumbnail preview for a given tab page.
Helper method to update the thumbnail preview for a given tab page .
private void UpdatePreviewBitmap(TabPage tabPage)
        {
            if (tabPage != null)
            {
                TabbedThumbnail preview = TaskbarManager.Instance.TabbedThumbnail.GetThumbnailPreview(tabPage);
                if (preview != null)
                {
                    Bitmap bitmap = TabbedThumbnailScreenCapture.GrabWindowBitmap(tabPage.Handle, tabPage.Size);
                    preview.SetImage(bitmap);
                    if (bitmap != null)
                    {
                        bitmap.Dispose();
                        bitmap = null;
                    }
                }
            }
        }
private void UpdatePreviewBitmap ( TabPage tabPage ) { if ( tabPage != null ) { TabbedThumbnail preview = TaskbarManager . Instance . TabbedThumbnail . GetThumbnailPreview ( tabPage ) ; if ( preview != null ) { Bitmap bitmap = TabbedThumbnailScreenCapture . GrabWindowBitmap ( tabPage . Handle , tabPage . Size ) ; preview . SetImage ( bitmap ) ; if ( bitmap != null ) { bitmap . Dispose ( ) ; bitmap = null ; } } } }
Helper method to update the thumbnail preview for a given tab page.
Helper method to update the thumbnail preview for a given tab page .
tabPage
TabPage
None