Button Constructor ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the Button class.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

new : unit -> Button

By default the Button displays no caption. To specify the caption text, set the Text property.

The following code example creates a Button, sets its DialogResult property to the OK value of DialogResult, and adds it to a Form.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: