System.Windows.Forms
1.0.5000.0
2.0.0.0
System.Windows.Forms.ButtonBase
System.Windows.Forms.IButtonControl
A can be clicked by using the mouse, ENTER key, or SPACEBAR if the button has focus.
Set the or property of a to allow users to click a button by pressing the ENTER or ESC keys even if the button does not have focus. This gives the form the behavior of a dialog box.
When you display a form using the method, you can use the property of a button to specify the return value of .
You can change the button's appearance. For example, to make it appear flat for a Web look, set the property to . The property can also be set to , which appears flat until the mouse pointer passes over the button; then the button takes on the standard Windows button appearance.
If the control that has focus accepts and processes the ENTER key press, the does not process it. For example, if a multiline or another button has focus, that control processes the ENTER key press instead of the accept button.
Represents a Windows button control.
Constructor
By default the displays no caption. To specify the caption text, set the property.
Initializes a new instance of the class.
1.0.5000.0
2.0.0.0
Property
2.0.0.0
System.ComponentModel.DefaultValue(System.Windows.Forms.AutoSizeMode.GrowOnly)
System.ComponentModel.Localizable(true)
System.ComponentModel.Browsable(true)
System.Windows.Forms.AutoSizeMode
To be added.
To be added.
Gets or sets the mode by which the automatically resizes itself.
Property
System.Windows.Forms.CreateParams
To be added.
Inheriting classes can override this property to add extra functionality, but must first call the constructor on the base class to verify that the control continues to work correctly.
Gets a on the base class when creating a window.
1.0.5000.0
2.0.0.0
Property
System.ComponentModel.DefaultValue(System.Windows.Forms.DialogResult.None)
System.Windows.Forms.DialogResult
To be added.
If the for this property is set to anything other than None, and if the parent form was displayed through the method, clicking the button closes the parent form without your having to hook up any events. The form's property is then set to the of the button when the button is clicked.
For example, to create a "Yes/No/Cancel" dialog box, simply add three buttons and set their properties to Yes, No, and Cancel.
Gets or sets a value that is returned to the parent form when the button is clicked.
1.0.5000.0
2.0.0.0
Event
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)
System.ComponentModel.Browsable(false)
System.EventHandler
By default, the and style bits are set to false for the control, and the event is not raised.
For more information about handling events, see Consuming Events.
Occurs when the user double-clicks the control.
1.0.5000.0
2.0.0.0
Event
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)
System.ComponentModel.Browsable(false)
System.Windows.Forms.MouseEventHandler
By default, the and style bits are set to false for the control, and the event is not raised.
For more information about handling events, see Consuming Events.
Occurs when the user double-clicks the control with the mouse.
Method
System.Void
This method is called by the parent form to notify the that it should be set as the default button and to allow it to adjust its appearance accordingly. Typically, a button that is the default button for a form has a thicker border than other buttons on the form.
Calling the method only draws the button as a default button; it does not change its behavior. To make the button behave like a default button, it must be assigned to the property of the .
Notifies the whether it is the default button so that it can adjust its appearance accordingly.
true if the button is to have the appearance of the default button; otherwise, false.
1.0.5000.0
2.0.0.0
Method
System.Void
To be added.
To be added.
To be added.
1.0.5000.0
2.0.0.0
Method
2.0.0.0
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
Method
System.Void
To be added.
To be added.
Provides information for the event.
2.0.0.0
Method
System.Void
To be added.
To be added.
Provides missing information for the event.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
A that contains the event data.
1.0.5000.0
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
2.0.0.0
Method
System.Void
This method can be called to raise the event.
Generates a event for a button.
1.0.5000.0
2.0.0.0
Method
System.Boolean
When overriding in a derived class, be sure to call the base class's to ensure that basic functionality remains unchanged.
Processes a mnemonic character.
true if the mnemonic was processed; otherwise, false.
The mnemonic character entered.
1.0.5000.0
2.0.0.0
Method
System.String
To be added.
To be added.
To be added.
1.0.5000.0
2.0.0.0
Method
System.Void
To be added.
To be added.
To be added.
1.0.5000.0
2.0.0.0
System.ComponentModel.Designer("System.Windows.Forms.Design.ButtonBaseDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")
System.Runtime.InteropServices.ComVisible(true)
System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)