Input for WinForms | ComponentOne
Input Controls / Button
In This Topic
    In This Topic

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

    Button control 

    The control provides DialogResult 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 Button Control
    Copy Code
    btn = new C1.Win.Input.C1Button();
    btn.DialogResult = DialogResult.OK;
    btn.Text = "Submit";
    btn.Trimming = StringTrimming.EllipsisCharacter;
    btn.Location = new Point(10, 20);