# Restricting the Thumbnail Preview

## Content



You can restrict the portion of a window's client area you want to display in the thumbnail preview by setting the [ClipControl](/componentone/api/win/online-winpack/dotnet-framework-api/C1.Win.C1Win7Pack.4.8/C1.Win.C1Win7Pack.C1Thumbnail.ClipControl.html) property to the **ID** of one of the form's elements.

### In the Designer

1.  Click the smart tag to open the **C1TaskbarButton Tasks** list.
2.  Click the **Clip Control** drop-down arrow and select one of the elements on your page from the list. For example, if you had a generic **Button** ("button1") control on your form and wanted to clip the thumbnail image to that button, you'd select button1.

### In Code

To restrict the thumbnail image to one element of your form, set the ClipControl property to the **ID** of that element. For example:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
C1TaskbarButton1.Thumbnail.ClipControl = button1
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
c1TaskbarButton1.Thumbnail.ClipControl = button1;
```

DOC-DETAILS-TAG-CLOSE