# C1TaskbarButton Operating System Compatibility

## Content



**C1TaskbarButton** is only supported by Windows 7. The control will not display on older versions of Windows, but it will not throw an exception if the user is using an earlier version of Windows. If the [C1TaskDialog](/componentone/api/win/online-winpack/dotnet-framework-api/C1.Win.C1Win7Pack.4.8/C1.Win.C1Win7Pack.C1TaskDialog.html) control is included in an application that may be run on previous versions of Windows – Windows XP or Vista, for example – you may want to specify an alternative dialog box so that important messages are displayed. You can do so by using the [IsPlatformSupported](/componentone/api/win/online-winpack/dotnet-framework-api/C1.Win.C1Win7Pack.4.8/C1.Win.C1Win7Pack.C1TaskbarButton.IsPlatformSupported.html) property to detect the user's operating system.

For example:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
If C1TaskbarButton.IsPlatformSupported Then
Else
    ' Show a brief message with simple choice of the action
    Dim res As DialogResult = MessageBox.Show("Text", "Caption", MessageBoxButtons.YesNoCancel)
    If res = DialogResult.Yes Then
        ....
    End If
End If
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
if (C1TaskbarButton.IsPlatformSupported)
else
{
    // Show a brief message with simple choice of the action
    DialogResult res = MessageBox.Show("Text", "Caption", MessageBoxButtons.YesNoCancel);
    if (res == DialogResult.Yes)
    {
        ...
    }
}
```

DOC-DETAILS-TAG-CLOSE