# Common Buttons

## Content



The **C1TaskDialog** control includes several built-in buttons that can be included in the bottom right corner of the dialog box. To customize the dialog box with buttons, you can set the [CommonButtons](/componentone/api/win/online-winpack/dotnet-framework-api/C1.Win.C1Win7Pack.4.8/C1.Win.C1Win7Pack.C1TaskDialog.CommonButtons.html) property to one or more of the following values:

| Button | Name | Description |
| --- | --- | --- |
| None | None | Displays no buttons. |
| <br />![](https://cdn.mescius.io/document-site-files/images/88084ada-ce7b-4ec0-9f66-d851989d7cf2/imagesext/image9_5.png) | Ok | Displays the **Ok** button. |
| <br />![](https://cdn.mescius.io/document-site-files/images/88084ada-ce7b-4ec0-9f66-d851989d7cf2/imagesext/image9_6.png) | Yes | Displays the **Yes** button. |
| <br />![](https://cdn.mescius.io/document-site-files/images/88084ada-ce7b-4ec0-9f66-d851989d7cf2/imagesext/image9_7.png) | No | Displays the **No** button. |
| <br />![](https://cdn.mescius.io/document-site-files/images/88084ada-ce7b-4ec0-9f66-d851989d7cf2/imagesext/image9_8.png) | Retry | Displays the **Retry** button. |
| <br />![](https://cdn.mescius.io/document-site-files/images/88084ada-ce7b-4ec0-9f66-d851989d7cf2/imagesext/image9_9.png) | Cancel | Displays the **Cancel** button. |
| <br />![](https://cdn.mescius.io/document-site-files/images/88084ada-ce7b-4ec0-9f66-d851989d7cf2/imagesext/image9_10.png) | Close | Displays the **Close** button. |

To set the default button, you can use the [SetDefaultButton](/componentone/api/win/online-winpack/dotnet-framework-api/C1.Win.C1Win7Pack.4.8/C1.Win.C1Win7Pack.C1TaskDialog.SetDefaultButton.html) method to indicate the name of the button. See the [Setting the Default Button](/componentone/docs/win/online-winpack/windows7controlpackf5/c1taskdialogtaskbase/settingthedefaultbut) topic for details.