Skip to content
ProGraMajster edited this page Mar 28, 2026 · 1 revision

Button

← Back to Control Inventory

Summary

Represents a Button control.

Example

var button = new Button
{
    Text = "Click me",
    Size = new Size(120, 40)
};

button.Click += (s, e) => Console.WriteLine("Clicked");

Documented Properties

Name Summary
AutoEllipsis Gets or sets a value indicating if text will be truncated with an ellipsis if it cannot fully fit in the .
AutoSizeMode Allows the control to optionally shrink when is .
DefaultCursor No XML summary yet.
DefaultSize No XML summary yet.
DialogResult Gets or sets a value that is returned to the parent form when the button is clicked.
Image Gets or sets the image displayed on the .
ImageAlign Gets or sets the alignment of the image on the .
ImageIndex Gets or sets the index of the image in the to display on the .
ImageKey Gets or sets the key of the image in the to display on the .
ImageList Gets or sets the that contains the image to display on the .
Style No XML summary yet.
StyleHover No XML summary yet.
TextAlign Gets or sets the alignment of the text on the .
TextImageRelation Gets or sets the alignment of the text relative to the image on the .

Documented Methods

Name Summary
#ctor Initializes a new instance of the Button class.
OnClick No XML summary yet.
OnKeyUp No XML summary yet.
OnPaint No XML summary yet.
PerformClick Generates a Click event for the Button.
ToString No XML summary yet.

Documented Events

No documented members yet.

Notes

  • This page was generated from the public XML documentation of ModernFormsNext.
  • Base members inherited from Control, ScrollableControl, WindowBase, or other parent types may not all be repeated here.

ModernFormsNext

Clone this wiki locally