# Button

## Content



Button is a standard button type control. In addition to features of the standard button control, C1Button class provides [Styles](/componentone/docs/win/online-input-net/) property which allows you to customize its appearance. The control also lets you set icon on the button using the [Icon](/componentone/docs/win/online-input-net/) property which supports bitmap, font and vector icons. You can also set the [Trimming](/componentone/docs/win/online-input-net/) property which lets you specify how to handle the text that does not fit in the available space.

![Button control](https://cdn.mescius.io/document-site-files/images/287a0e06-68cb-453e-816c-125f892133e7/images/button.png)

The control provides [DialogResult](/componentone/docs/win/online-input-net/) property that lets you send a click response to the parent form. Apart from the default value None, the property lets you send OK, Cancel, Ignore, Yes or No as return value.

```CREATE
btn = new C1.Win.Input.C1Button();
Controls.Add(btn);
btn.DialogResult = DialogResult.OK;
btn.Text = "Submit";
btn.Trimming = StringTrimming.EllipsisCharacter;
btn.Location = new Point(10, 20);
```