# C1TaskDialog Operating System Compatibility

## Content



**C1TaskDialog** is only supported on Windows Vista or later. The control will simply not display on older versions of Windows and will not throw an exception. 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, 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.C1TaskDialog.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 C1TaskDialog.IsPlatformSupported Then
    c1TaskDialog1.Show()
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 (C1TaskDialog.IsPlatformSupported)
    c1TaskDialog1.Show();
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