翻訳への提案を行います
 
他のユーザーによる提案:

progress indicator
他の提案はありません。
クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
.NET 開発
.NET Framework 4
System.Windows 名前空間
System.Windows.Forms
Button クラス
すべて縮小/すべて展開 すべて縮小
コンテンツの表示:   英語と日本語を並べて表示コンテンツの表示: 英語と日本語を並べて表示
.NET Framework Class Library
Button Class

Represents a Windows button control.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
Visual Basic
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
<ComVisibleAttribute(True)> _
Public Class Button _
    Inherits ButtonBase _
    Implements IButtonControl
C#
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)]
[ComVisibleAttribute(true)]
public class Button : ButtonBase, IButtonControl
Visual C++
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)]
[ComVisibleAttribute(true)]
public ref class Button : public ButtonBase, 
    IButtonControl
F#
[<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)>]
[<ComVisibleAttribute(true)>]
type Button =  
    class
        inherit ButtonBase
        interface IButtonControl
    end

The Button type exposes the following members.

  NameDescription
Public methodButtonInitializes a new instance of the Button class.
Top
  NameDescription
Public propertyAccessibilityObjectGets the AccessibleObject assigned to the control. (Inherited from Control.)
Public propertyAccessibleDefaultActionDescriptionGets or sets the default action description of the control for use by accessibility client applications. (Inherited from Control.)
Public propertyAccessibleDescriptionGets or sets the description of the control used by accessibility client applications. (Inherited from Control.)
Public propertyAccessibleNameGets or sets the name of the control used by accessibility client applications. (Inherited from Control.)
Public propertyAccessibleRoleGets or sets the accessible role of the control (Inherited from Control.)
Public propertyAllowDropGets or sets a value indicating whether the control can accept data that the user drags onto it. (Inherited from Control.)
Public propertyAnchorGets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. (Inherited from Control.)
Public propertyAutoEllipsisGets or sets a value indicating whether the ellipsis character (...) appears at the right edge of the control, denoting that the control text extends beyond the specified length of the control. (Inherited from ButtonBase.)
Public propertyAutoScrollOffsetGets or sets where this control is scrolled to in ScrollControlIntoView. (Inherited from Control.)
Public propertyAutoSizeGets or sets a value that indicates whether the control resizes based on its contents. (Inherited from ButtonBase.)
Public propertyAutoSizeModeGets or sets the mode by which the Button automatically resizes itself.
Public propertyBackColorGets or sets the background color of the control. (Inherited from ButtonBase.)
Public propertyBackgroundImageGets or sets the background image displayed in the control. (Inherited from Control.)
Public propertyBackgroundImageLayoutGets or sets the background image layout as defined in the ImageLayout enumeration. (Inherited from Control.)
Public propertyBindingContextGets or sets the BindingContext for the control. (Inherited from Control.)
Public propertyBottomGets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area. (Inherited from Control.)
Public propertyBoundsGets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. (Inherited from Control.)
Protected propertyCanEnableImeGets a value indicating whether the ImeMode property can be set to an active value, to enable IME support. (Inherited from Control.)
Public propertyCanFocusGets a value indicating whether the control can receive focus. (Inherited from Control.)
Protected propertyCanRaiseEventsDetermines if events can be raised on the control. (Inherited from Control.)
Public propertyCanSelectGets a value indicating whether the control can be selected. (Inherited from Control.)
Public propertyCaptureGets or sets a value indicating whether the control has captured the mouse. (Inherited from Control.)
Public propertyCausesValidationGets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus. (Inherited from Control.)
Public propertyClientRectangleGets the rectangle that represents the client area of the control. (Inherited from Control.)
Public propertyClientSizeGets or sets the height and width of the client area of the control. (Inherited from Control.)
Public propertyCompanyNameGets the name of the company or creator of the application containing the control. (Inherited from Control.)
Public propertyContainerGets the IContainer that contains the Component. (Inherited from Component.)
Public propertyContainsFocusGets a value indicating whether the control, or one of its child controls, currently has the input focus. (Inherited from Control.)
Public propertyContextMenuGets or sets the shortcut menu associated with the control. (Inherited from Control.)
Public propertyContextMenuStripGets or sets the ContextMenuStrip associated with this control. (Inherited from Control.)
Public propertyControlsGets the collection of controls contained within the control. (Inherited from Control.)
Public propertyCreatedGets a value indicating whether the control has been created. (Inherited from Control.)
Protected propertyCreateParamsGets a CreateParams on the base class when creating a window. (Overrides ButtonBase..::.CreateParams.)
Public propertyCursorGets or sets the cursor that is displayed when the mouse pointer is over the control. (Inherited from Control.)
Public propertyDataBindingsGets the data bindings for the control. (Inherited from Control.)
Protected propertyDefaultCursorGets or sets the default cursor for the control. (Inherited from Control.)
Protected propertyDefaultImeModeGets the default Input Method Editor (IME) mode supported by this control. (Inherited from ButtonBase.)
Protected propertyDefaultMarginGets the space, in pixels, that is specified by default between controls. (Inherited from Control.)
Protected propertyDefaultMaximumSizeGets the length and height, in pixels, that is specified as the default maximum size of a control. (Inherited from Control.)
Protected propertyDefaultMinimumSizeGets the length and height, in pixels, that is specified as the default minimum size of a control. (Inherited from Control.)
Protected propertyDefaultPaddingGets the internal spacing, in pixels, of the contents of a control. (Inherited from Control.)
Protected propertyDefaultSizeGets the default size of the control. (Inherited from ButtonBase.)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public propertyDialogResultGets or sets a value that is returned to the parent form when the button is clicked.
Public propertyDisplayRectangleGets the rectangle that represents the display area of the control. (Inherited from Control.)
Public propertyDisposingGets a value indicating whether the base Control class is in the process of disposing. (Inherited from Control.)
Public propertyDockGets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. (Inherited from Control.)
Protected propertyDoubleBufferedGets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker. (Inherited from Control.)
Public propertyEnabledGets or sets a value indicating whether the control can respond to user interaction. (Inherited from Control.)
Protected propertyEventsGets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertyFlatAppearanceGets the appearance of the border and the colors used to indicate check state and mouse state. (Inherited from ButtonBase.)
Public propertyFlatStyleGets or sets the flat style appearance of the button control. (Inherited from ButtonBase.)
Public propertyFocusedGets a value indicating whether the control has input focus. (Inherited from Control.)
Public propertyFontGets or sets the font of the text displayed by the control. (Inherited from Control.)
Protected propertyFontHeightGets or sets the height of the font of the control. (Inherited from Control.)
Public propertyForeColorGets or sets the foreground color of the control. (Inherited from Control.)
Public propertyHandleGets the window handle that the control is bound to. (Inherited from Control.)
Public propertyHasChildrenGets a value indicating whether the control contains one or more child controls. (Inherited from Control.)
Public propertyHeightGets or sets the height of the control. (Inherited from Control.)
Public propertyImageGets or sets the image that is displayed on a button control. (Inherited from ButtonBase.)
Public propertyImageAlignGets or sets the alignment of the image on the button control. (Inherited from ButtonBase.)
Public propertyImageIndexGets or sets the image list index value of the image displayed on the button control. (Inherited from ButtonBase.)
Public propertyImageKeyGets or sets the key accessor for the image in the ImageList. (Inherited from ButtonBase.)
Public propertyImageListGets or sets the ImageList that contains the Image displayed on a button control. (Inherited from ButtonBase.)
Public propertyImeModeInfrastructure. Gets or sets the Input Method Editor (IME) mode supported by this control. This property is not relevant for this class. (Inherited from ButtonBase.)
Protected propertyImeModeBaseGets or sets the IME mode of a control. (Inherited from Control.)
Public propertyInvokeRequiredGets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on. (Inherited from Control.)
Public propertyIsAccessibleGets or sets a value indicating whether the control is visible to accessibility applications. (Inherited from Control.)
Protected propertyIsDefaultGets or sets a value indicating whether the button control is the default button. (Inherited from ButtonBase.)
Public propertyIsDisposedGets a value indicating whether the control has been disposed of. (Inherited from Control.)
Public propertyIsHandleCreatedGets a value indicating whether the control has a handle associated with it. (Inherited from Control.)
Public propertyIsMirroredGets a value indicating whether the control is mirrored. (Inherited from Control.)
Public propertyLayoutEngineGets a cached instance of the control's layout engine. (Inherited from Control.)
Public propertyLeftGets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area. (Inherited from Control.)
Public propertyLocationGets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. (Inherited from Control.)
Public propertyMarginGets or sets the space between controls. (Inherited from Control.)
Public propertyMaximumSizeGets or sets the size that is the upper limit that GetPreferredSize can specify. (Inherited from Control.)
Public propertyMinimumSizeGets or sets the size that is the lower limit that GetPreferredSize can specify. (Inherited from Control.)
Public propertyNameGets or sets the name of the control. (Inherited from Control.)
Public propertyPaddingGets or sets padding within the control. (Inherited from Control.)
Public propertyParentGets or sets the parent container of the control. (Inherited from Control.)
Public propertyPreferredSizeGets the size of a rectangular area into which the control can fit. (Inherited from Control.)
Public propertyProductNameGets the product name of the assembly containing the control. (Inherited from Control.)
Public propertyProductVersionGets the version of the assembly containing the control. (Inherited from Control.)
Public propertyRecreatingHandleGets a value indicating whether the control is currently re-creating its handle. (Inherited from Control.)
Public propertyRegionGets or sets the window region associated with the control. (Inherited from Control.)
Protected propertyRenderRightToLeft Obsolete. This property is now obsolete. (Inherited from Control.)
Protected propertyResizeRedrawGets or sets a value indicating whether the control redraws itself when resized. (Inherited from Control.)
Public propertyRightGets the distance, in pixels, between the right edge of the control and the left edge of its container's client area. (Inherited from Control.)
Public propertyRightToLeftGets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. (Inherited from Control.)
Protected propertyScaleChildrenGets a value that determines the scaling of child controls. (Inherited from Control.)
Protected propertyShowFocusCuesGets a value indicating whether the control should display focus rectangles. (Inherited from Control.)
Protected propertyShowKeyboardCuesGets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators. (Inherited from Control.)
Public propertySiteGets or sets the site of the control. (Inherited from Control.)
Public propertySizeGets or sets the height and width of the control. (Inherited from Control.)
Public propertyTabIndexGets or sets the tab order of the control within its container. (Inherited from Control.)
Public propertyTabStopGets or sets a value indicating whether the user can give the focus to this control using the TAB key. (Inherited from Control.)
Public propertyTagGets or sets the object that contains data about the control. (Inherited from Control.)
Public propertyTextGets or sets the text associated with this control. (Inherited from ButtonBase.)
Public propertyTextAlignGets or sets the alignment of the text on the button control. (Inherited from ButtonBase.)
Public propertyTextImageRelationGets or sets the position of text and image relative to each other. (Inherited from ButtonBase.)
Public propertyTopGets or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area. (Inherited from Control.)
Public propertyTopLevelControlGets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost Form that the control is contained in. (Inherited from Control.)
Public propertyUseCompatibleTextRenderingGets or sets a value that determines whether to use the Graphics class (GDI+) or the TextRenderer class (GDI) to render text. (Inherited from ButtonBase.)
Public propertyUseMnemonicGets or sets a value indicating whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control. (Inherited from ButtonBase.)
Public propertyUseVisualStyleBackColorGets or sets a value that determines if the background is drawn using visual styles, if supported. (Inherited from ButtonBase.)
Public propertyUseWaitCursorGets or sets a value indicating whether to use the wait cursor for the current control and all child controls. (Inherited from Control.)
Public propertyVisibleGets or sets a value indicating whether the control and all its child controls are displayed. (Inherited from Control.)
Public propertyWidthGets or sets the width of the control. (Inherited from Control.)
Public propertyWindowTargetInfrastructure. This property is not relevant for this class. (Inherited from Control.)
Top
  NameDescription
Protected methodAccessibilityNotifyClients(AccessibleEvents, Int32)Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control. (Inherited from Control.)
Protected methodAccessibilityNotifyClients(AccessibleEvents, Int32, Int32)Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control . (Inherited from Control.)
Public methodBeginInvoke(Delegate)Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on. (Inherited from Control.)
Public methodBeginInvoke(Delegate, array<Object>[]()[])Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on. (Inherited from Control.)
Public methodBringToFrontBrings the control to the front of the z-order. (Inherited from Control.)
Public methodContainsRetrieves a value indicating whether the specified control is a child of the control. (Inherited from Control.)
Protected methodCreateAccessibilityInstanceCreates a new accessibility object for the control. (Inherited from ButtonBase.)
Public methodCreateControlForces the creation of the visible control, including the creation of the handle and any visible child controls. (Inherited from Control.)
Protected methodCreateControlsInstanceCreates a new instance of the control collection for the control. (Inherited from Control.)
Public methodCreateGraphicsCreates the Graphics for the control. (Inherited from Control.)
Protected methodCreateHandleCreates a handle for the control. (Inherited from Control.)
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Protected methodDefWndProcSends the specified message to the default window procedure. (Inherited from Control.)
Protected methodDestroyHandleDestroys the handle associated with the control. (Inherited from Control.)
Public methodDispose()()()Releases all resources used by the Component. (Inherited from Component.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the ButtonBase and optionally releases the managed resources. (Inherited from ButtonBase.)
Public methodDoDragDropBegins a drag-and-drop operation. (Inherited from Control.)
Public methodDrawToBitmapSupports rendering to the specified bitmap. (Inherited from Control.)
Public methodEndInvokeRetrieves the return value of the asynchronous operation represented by the IAsyncResult passed. (Inherited from Control.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodFindFormRetrieves the form that the control is on. (Inherited from Control.)
Public methodFocusSets input focus to the control. (Inherited from Control.)
Protected methodGetAccessibilityObjectByIdRetrieves the specified AccessibleObject. (Inherited from Control.)
Protected methodGetAutoSizeModeRetrieves a value indicating how a control will behave when its AutoSize property is enabled. (Inherited from Control.)
Public methodGetChildAtPoint(Point)Retrieves the child control that is located at the specified coordinates. (Inherited from Control.)
Public methodGetChildAtPoint(Point, GetChildAtPointSkip)Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type. (Inherited from Control.)
Public methodGetContainerControlReturns the next ContainerControl up the control's chain of parent controls. (Inherited from Control.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetNextControlRetrieves the next control forward or back in the tab order of child controls. (Inherited from Control.)
Public methodGetPreferredSizeRetrieves the size of a rectangular area into which a control can be fitted. (Inherited from ButtonBase.)
Protected methodGetScaledBoundsRetrieves the bounds within which the control is scaled. (Inherited from Control.)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Protected methodGetStyleRetrieves the value of the specified control style bit for the control. (Inherited from Control.)
Protected methodGetTopLevelDetermines if the control is a top-level control. (Inherited from Control.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodHideConceals the control from the user. (Inherited from Control.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodInitLayoutCalled after the control has been added to another container. (Inherited from Control.)
Public methodInvalidate()()()Invalidates the entire surface of the control and causes the control to be redrawn. (Inherited from Control.)
Public methodInvalidate(Boolean)Invalidates a specific region of the control and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. (Inherited from Control.)
Public methodInvalidate(Rectangle)Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. (Inherited from Control.)
Public methodInvalidate(Region)Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. (Inherited from Control.)
Public methodInvalidate(Rectangle, Boolean)Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. (Inherited from Control.)
Public methodInvalidate(Region, Boolean)Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. (Inherited from Control.)
Public methodInvoke(Delegate)Executes the specified delegate on the thread that owns the control's underlying window handle. (Inherited from Control.)
Public methodInvoke(Delegate, array<Object>[]()[])Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments. (Inherited from Control.)
Protected methodInvokeGotFocusRaises the GotFocus event for the specified control. (Inherited from Control.)
Protected methodInvokeLostFocusRaises the LostFocus event for the specified control. (Inherited from Control.)
Protected methodInvokeOnClickRaises the Click event for the specified control. (Inherited from Control.)
Protected methodInvokePaintRaises the Paint event for the specified control. (Inherited from Control.)
Protected methodInvokePaintBackgroundRaises the PaintBackground event for the specified control. (Inherited from Control.)
Protected methodIsInputCharDetermines if a character is an input character that the control recognizes. (Inherited from Control.)
Protected methodIsInputKeyDetermines whether the specified key is a regular input key or a special key that requires preprocessing. (Inherited from Control.)
Protected methodMemberwiseClone()()()Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public methodNotifyDefaultNotifies the Button whether it is the default button so that it can adjust its appearance accordingly.
Protected methodNotifyInvalidateInfrastructure. Raises the Invalidated event with a specified region of the control to invalidate. (Inherited from Control.)
Protected methodOnAutoSizeChangedRaises the AutoSizeChanged event. (Inherited from Control.)
Protected methodOnBackColorChangedRaises the BackColorChanged event. (Inherited from Control.)
Protected methodOnBackgroundImageChangedRaises the BackgroundImageChanged event. (Inherited from Control.)
Protected methodOnBackgroundImageLayoutChangedRaises the BackgroundImageLayoutChanged event. (Inherited from Control.)
Protected methodOnBindingContextChangedRaises the BindingContextChanged event. (Inherited from Control.)
Protected methodOnCausesValidationChangedRaises the CausesValidationChanged event. (Inherited from Control.)
Protected methodOnChangeUICuesRaises the ChangeUICues event. (Inherited from Control.)
Protected methodOnClickRaises the Click event. (Overrides Control..::.OnClick(EventArgs).)
Protected methodOnClientSizeChangedRaises the ClientSizeChanged event. (Inherited from Control.)
Protected methodOnContextMenuChangedRaises the ContextMenuChanged event. (Inherited from Control.)
Protected methodOnContextMenuStripChangedRaises the ContextMenuStripChanged event. (Inherited from Control.)
Protected methodOnControlAddedRaises the ControlAdded event. (Inherited from Control.)
Protected methodOnControlRemovedRaises the ControlRemoved event. (Inherited from Control.)
Protected methodOnCreateControlRaises the CreateControl method. (Inherited from Control.)
Protected methodOnCursorChangedRaises the CursorChanged event. (Inherited from Control.)
Protected methodOnDockChangedRaises the DockChanged event. (Inherited from Control.)
Protected methodOnDoubleClickRaises the DoubleClick event. (Inherited from Control.)
Protected methodOnDragDropRaises the DragDrop event. (Inherited from Control.)
Protected methodOnDragEnterRaises the DragEnter event. (Inherited from Control.)
Protected methodOnDragLeaveRaises the DragLeave event. (Inherited from Control.)
Protected methodOnDragOverRaises the DragOver event. (Inherited from Control.)
Protected methodOnEnabledChangedRaises the EnabledChanged event. (Inherited from ButtonBase.)
Protected methodOnEnterRaises the Enter event. (Inherited from Control.)
Protected methodOnFontChangedRaises the FontChanged event. (Overrides Control..::.OnFontChanged(EventArgs).)
Protected methodOnForeColorChangedRaises the ForeColorChanged event. (Inherited from Control.)
Protected methodOnGiveFeedbackRaises the GiveFeedback event. (Inherited from Control.)
Protected methodOnGotFocusRaises the GotFocus event. (Inherited from ButtonBase.)
Protected methodOnHandleCreatedRaises the HandleCreated event. (Inherited from Control.)
Protected methodOnHandleDestroyedRaises the HandleDestroyed event. (Inherited from Control.)
Protected methodOnHelpRequestedRaises the HelpRequested event. (Inherited from Control.)
Protected methodOnImeModeChangedRaises the ImeModeChanged event. (Inherited from Control.)
Protected methodOnInvalidatedRaises the Invalidated event. (Inherited from Control.)
Protected methodOnKeyDownInfrastructure. Raises the OnKeyUp event. (Inherited from ButtonBase.)
Protected methodOnKeyPressRaises the KeyPress event. (Inherited from Control.)
Protected methodOnKeyUpInfrastructure. Raises the OnKeyUp event. (Inherited from ButtonBase.)
Protected methodOnLayoutRaises the Layout event. (Inherited from Control.)
Protected methodOnLeaveRaises the Leave event. (Inherited from Control.)
Protected methodOnLocationChangedRaises the LocationChanged event. (Inherited from Control.)
Protected methodOnLostFocusInfrastructure. Raises the OnLostFocus event. (Inherited from ButtonBase.)
Protected methodOnMarginChangedRaises the MarginChanged event. (Inherited from Control.)
Protected methodOnMouseCaptureChangedRaises the MouseCaptureChanged event. (Inherited from Control.)
Protected methodOnMouseClickRaises the MouseClick event. (Inherited from Control.)
Protected methodOnMouseDoubleClickRaises the MouseDoubleClick event. (Inherited from Control.)
Protected methodOnMouseDownInfrastructure. Raises the OnMouseDown event. (Inherited from ButtonBase.)
Protected methodOnMouseEnterRaises the OnMouseEnter event. (Overrides ButtonBase..::.OnMouseEnter(EventArgs).)
Protected methodOnMouseHoverRaises the MouseHover event. (Inherited from Control.)
Protected methodOnMouseLeaveRaises the OnMouseLeave event. (Overrides ButtonBase..::.OnMouseLeave(EventArgs).)
Protected methodOnMouseMoveInfrastructure. Raises the OnMouseMove event. (Inherited from ButtonBase.)
Protected methodOnMouseUpRaises the OnMouseUp event. (Overrides ButtonBase..::.OnMouseUp(MouseEventArgs).)
Protected methodOnMouseWheelRaises the MouseWheel event. (Inherited from Control.)
Protected methodOnMoveRaises the Move event. (Inherited from Control.)
Protected methodOnNotifyMessageNotifies the control of Windows messages. (Inherited from Control.)
Protected methodOnPaddingChangedRaises the PaddingChanged event. (Inherited from Control.)
Protected methodOnPaintInfrastructure. Raises the OnPaint event. (Inherited from ButtonBase.)
Protected methodOnPaintBackgroundPaints the background of the control. (Inherited from Control.)
Protected methodOnParentBackColorChangedRaises the BackColorChanged event when the BackColor property value of the control's container changes. (Inherited from Control.)
Protected methodOnParentBackgroundImageChangedRaises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes. (Inherited from Control.)
Protected methodOnParentBindingContextChangedRaises the BindingContextChanged event when the BindingContext property value of the control's container changes. (Inherited from Control.)
Protected methodOnParentChangedRaises the ParentChanged event. (Inherited from ButtonBase.)
Protected methodOnParentCursorChangedRaises the CursorChanged event. (Inherited from Control.)
Protected methodOnParentEnabledChangedRaises the EnabledChanged event when the Enabled property value of the control's container changes. (Inherited from Control.)
Protected methodOnParentFontChangedRaises the FontChanged event when the Font property value of the control's container changes. (Inherited from Control.)
Protected methodOnParentForeColorChangedRaises the ForeColorChanged event when the ForeColor property value of the control's container changes. (Inherited from Control.)
Protected methodOnParentRightToLeftChangedRaises the RightToLeftChanged event when the RightToLeft property value of the control's container changes. (Inherited from Control.)
Protected methodOnParentVisibleChangedRaises the VisibleChanged event when the Visible property value of the control's container changes. (Inherited from Control.)
Protected methodOnPreviewKeyDownRaises the PreviewKeyDown event. (Inherited from Control.)
Protected methodOnPrintRaises the Paint event. (Inherited from Control.)
Protected methodOnQueryContinueDragRaises the QueryContinueDrag event. (Inherited from Control.)
Protected methodOnRegionChangedRaises the RegionChanged event. (Inherited from Control.)
Protected methodOnResizeRaises the Resize event. (Inherited from Control.)
Protected methodOnRightToLeftChangedRaises the RightToLeftChanged event. (Inherited from Control.)
Protected methodOnSizeChangedRaises the SizeChanged event. (Inherited from Control.)
Protected methodOnStyleChangedRaises the StyleChanged event. (Inherited from Control.)
Protected methodOnSystemColorsChangedRaises the SystemColorsChanged event. (Inherited from Control.)
Protected methodOnTabIndexChangedRaises the TabIndexChanged event. (Inherited from Control.)
Protected methodOnTabStopChangedRaises the TabStopChanged event. (Inherited from Control.)
Protected methodOnTextChangedRaises the TextChanged event. (Overrides ButtonBase..::.OnTextChanged(EventArgs).)
Protected methodOnValidatedRaises the Validated event. (Inherited from Control.)
Protected methodOnValidatingRaises the Validating event. (Inherited from Control.)
Protected methodOnVisibleChangedRaises the VisibleChanged event. (Inherited from ButtonBase.)
Public methodPerformClickGenerates a Click event for a button.
Public methodPerformLayout()()()Forces the control to apply layout logic to all its child controls. (Inherited from Control.)
Public methodPerformLayout(Control, String)Forces the control to apply layout logic to all its child controls. (Inherited from Control.)
Public methodPointToClientComputes the location of the specified screen point into client coordinates. (Inherited from Control.)
Public methodPointToScreenComputes the location of the specified client point into screen coordinates. (Inherited from Control.)
Public methodPreProcessControlMessagePreprocesses keyboard or input messages within the message loop before they are dispatched. (Inherited from Control.)
Public methodPreProcessMessagePreprocesses keyboard or input messages within the message loop before they are dispatched. (Inherited from Control.)
Protected methodProcessCmdKeyProcesses a command key. (Inherited from Control.)
Protected methodProcessDialogCharProcesses a dialog character. (Inherited from Control.)
Protected methodProcessDialogKeyProcesses a dialog key. (Inherited from Control.)
Protected methodProcessKeyEventArgsProcesses a key message and generates the appropriate control events. (Inherited from Control.)
Protected methodProcessKeyMessageProcesses a keyboard message. (Inherited from Control.)
Protected methodProcessKeyPreviewPreviews a keyboard message. (Inherited from Control.)
Protected methodProcessMnemonicProcesses a mnemonic character. (Overrides Control..::.ProcessMnemonic(Char).)
Protected methodRaiseDragEventInfrastructure. Raises the appropriate drag event. (Inherited from Control.)
Protected methodRaiseKeyEventInfrastructure. Raises the appropriate key event. (Inherited from Control.)
Protected methodRaiseMouseEventInfrastructure. Raises the appropriate mouse event. (Inherited from Control.)
Protected methodRaisePaintEventInfrastructure. Raises the appropriate paint event. (Inherited from Control.)
Protected methodRecreateHandleForces the re-creation of the handle for the control. (Inherited from Control.)
Public methodRectangleToClientComputes the size and location of the specified screen rectangle in client coordinates. (Inherited from Control.)
Public methodRectangleToScreenComputes the size and location of the specified client rectangle in screen coordinates. (Inherited from Control.)
Public methodRefreshForces the control to invalidate its client area and immediately redraw itself and any child controls. (Inherited from Control.)
Public methodResetBackColorResets the BackColor property to its default value. (Inherited from Control.)
Public methodResetBindingsCauses a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. (Inherited from Control.)
Public methodResetCursorResets the Cursor property to its default value. (Inherited from Control.)
Protected methodResetFlagsandPaintInfrastructure. Resets the Button control to the state before it is pressed and redraws it. (Inherited from ButtonBase.)
Public methodResetFontResets the Font property to its default value. (Inherited from Control.)
Public methodResetForeColorResets the ForeColor property to its default value. (Inherited from Control.)
Public methodResetImeModeResets the ImeMode property to its default value. (Inherited from Control.)
Protected methodResetMouseEventArgsInfrastructure. Resets the control to handle the MouseLeave event. (Inherited from Control.)
Public methodResetRightToLeftResets the RightToLeft property to its default value. (Inherited from Control.)
Public methodResetTextResets the Text property to its default value. (Inherited from Control.)
Public methodResumeLayout()()()Resumes usual layout logic. (Inherited from Control.)
Public methodResumeLayout(Boolean)Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests. (Inherited from Control.)
Protected methodRtlTranslateAlignment(ContentAlignment)Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. (Inherited from Control.)
Protected methodRtlTranslateAlignment(HorizontalAlignment)Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. (Inherited from Control.)
Protected methodRtlTranslateAlignment(LeftRightAlignment)Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text. (Inherited from Control.)
Protected methodRtlTranslateContentConverts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. (Inherited from Control.)
Protected methodRtlTranslateHorizontalConverts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. (Inherited from Control.)
Protected methodRtlTranslateLeftRightConverts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text. (Inherited from Control.)
Public methodScale(Single) Obsolete. Scales the control and any child controls. (Inherited from Control.)
Public methodScale(SizeF)Scales the control and all child controls by the specified scaling factor. (Inherited from Control.)
Public methodScale(Single, Single) Obsolete. Scales the entire control and any child controls. (Inherited from Control.)
Protected methodScaleControlScales a control's location, size, padding and margin. (Inherited from Control.)
Protected methodScaleCoreInfrastructure. This method is not relevant for this class. (Inherited from Control.)
Public methodSelect()()()Activates the control. (Inherited from Control.)
Protected methodSelect(Boolean, Boolean)Activates a child control. Optionally specifies the direction in the tab order to select the control from. (Inherited from Control.)
Public methodSelectNextControlActivates the next control. (Inherited from Control.)
Public methodSendToBackSends the control to the back of the z-order. (Inherited from Control.)
Protected methodSetAutoSizeModeSets a value indicating how a control will behave when its AutoSize property is enabled. (Inherited from Control.)
Public methodSetBounds(Int32, Int32, Int32, Int32)Sets the bounds of the control to the specified location and size. (Inherited from Control.)
Public methodSetBounds(Int32, Int32, Int32, Int32, BoundsSpecified)Sets the specified bounds of the control to the specified location and size. (Inherited from Control.)
Protected methodSetBoundsCorePerforms the work of setting the specified bounds of this control. (Inherited from Control.)
Protected methodSetClientSizeCoreSets the size of the client area of the control. (Inherited from Control.)
Protected methodSetStyleSets a specified ControlStyles flag to either true or false. (Inherited from Control.)
Protected methodSetTopLevelSets the control as the top-level control. (Inherited from Control.)
Protected methodSetVisibleCoreSets the control to the specified visible state. (Inherited from Control.)
Public methodShowDisplays the control to the user. (Inherited from Control.)
Protected methodSizeFromClientSizeDetermines the size of the entire control from the height and width of its client area. (Inherited from Control.)
Public methodSuspendLayoutTemporarily suspends the layout logic for the control. (Inherited from Control.)
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (Overrides Component..::.ToString()()().)
Public methodUpdateCauses the control to redraw the invalidated regions within its client area. (Inherited from Control.)
Protected methodUpdateBounds()()()Updates the bounds of the control with the current size and location. (Inherited from Control.)
Protected methodUpdateBounds(Int32, Int32, Int32, Int32)Updates the bounds of the control with the specified size and location. (Inherited from Control.)
Protected methodUpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)Updates the bounds of the control with the specified size, location, and client size. (Inherited from Control.)
Protected methodUpdateStylesForces the assigned styles to be reapplied to the control. (Inherited from Control.)
Protected methodUpdateZOrderUpdates the control in its parent's z-order. (Inherited from Control.)
Protected methodWndProcProcesses Windows messages. (Overrides ButtonBase..::.WndProc(Message%).)
Top
  NameDescription
Public eventAutoSizeChangedOccurs when the value of the AutoSize property changes. (Inherited from ButtonBase.)
Public eventBackColorChangedOccurs when the value of the BackColor property changes. (Inherited from Control.)
Public eventBackgroundImageChangedOccurs when the value of the BackgroundImage property changes. (Inherited from Control.)
Public eventBackgroundImageLayoutChangedOccurs when the BackgroundImageLayout property changes. (Inherited from Control.)
Public eventBindingContextChangedOccurs when the value of the BindingContext property changes. (Inherited from Control.)
Public eventCausesValidationChangedOccurs when the value of the CausesValidation property changes. (Inherited from Control.)
Public eventChangeUICuesOccurs when the focus or keyboard user interface (UI) cues change. (Inherited from Control.)
Public eventClickOccurs when the control is clicked. (Inherited from Control.)
Public eventClientSizeChangedOccurs when the value of the ClientSize property changes. (Inherited from Control.)
Public eventContextMenuChangedOccurs when the value of the ContextMenu property changes. (Inherited from Control.)
Public eventContextMenuStripChangedOccurs when the value of the ContextMenuStrip property changes. (Inherited from Control.)
Public eventControlAddedOccurs when a new control is added to the Control..::.ControlCollection. (Inherited from Control.)
Public eventControlRemovedOccurs when a control is removed from the Control..::.ControlCollection. (Inherited from Control.)
Public eventCursorChangedOccurs when the value of the Cursor property changes. (Inherited from Control.)
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public eventDockChangedOccurs when the value of the Dock property changes. (Inherited from Control.)
Public eventDoubleClickOccurs when the user double-clicks the Button control.
Public eventDragDropOccurs when a drag-and-drop operation is completed. (Inherited from Control.)
Public eventDragEnterOccurs when an object is dragged into the control's bounds. (Inherited from Control.)
Public eventDragLeaveOccurs when an object is dragged out of the control's bounds. (Inherited from Control.)
Public eventDragOverOccurs when an object is dragged over the control's bounds. (Inherited from Control.)
Public eventEnabledChangedOccurs when the Enabled property value has changed. (Inherited from Control.)
Public eventEnterOccurs when the control is entered. (Inherited from Control.)
Public eventFontChangedOccurs when the Font property value changes. (Inherited from Control.)
Public eventForeColorChangedOccurs when the ForeColor property value changes. (Inherited from Control.)
Public eventGiveFeedbackOccurs during a drag operation. (Inherited from Control.)
Public eventGotFocusOccurs when the control receives focus. (Inherited from Control.)
Public eventHandleCreatedOccurs when a handle is created for the control. (Inherited from Control.)
Public eventHandleDestroyedOccurs when the control's handle is in the process of being destroyed. (Inherited from Control.)
Public eventHelpRequestedOccurs when the user requests help for a control. (Inherited from Control.)
Public eventImeModeChangedInfrastructure. Occurs when the ImeMode property is changed. This event is not relevant for this class. (Inherited from ButtonBase.)
Public eventInvalidatedOccurs when a control's display requires redrawing. (Inherited from Control.)
Public eventKeyDownOccurs when a key is pressed while the control has focus. (Inherited from Control.)
Public eventKeyPressOccurs when a key is pressed while the control has focus. (Inherited from Control.)
Public eventKeyUpOccurs when a key is released while the control has focus. (Inherited from Control.)
Public eventLayoutOccurs when a control should reposition its child controls. (Inherited from Control.)
Public eventLeaveOccurs when the input focus leaves the control. (Inherited from Control.)
Public eventLocationChangedOccurs when the Location property value has changed. (Inherited from Control.)
Public eventLostFocusOccurs when the control loses focus. (Inherited from Control.)
Public eventMarginChangedOccurs when the control's margin changes. (Inherited from Control.)
Public eventMouseCaptureChangedOccurs when the control loses mouse capture. (Inherited from Control.)
Public eventMouseClickOccurs when the control is clicked by the mouse. (Inherited from Control.)
Public eventMouseDoubleClickOccurs when the user double-clicks the Button control with the mouse.
Public eventMouseDownOccurs when the mouse pointer is over the control and a mouse button is pressed. (Inherited from Control.)
Public eventMouseEnterOccurs when the mouse pointer enters the control. (Inherited from Control.)
Public eventMouseHoverOccurs when the mouse pointer rests on the control. (Inherited from Control.)
Public eventMouseLeaveOccurs when the mouse pointer leaves the control. (Inherited from Control.)
Public eventMouseMoveOccurs when the mouse pointer is moved over the control. (Inherited from Control.)
Public eventMouseUpOccurs when the mouse pointer is over the control and a mouse button is released. (Inherited from Control.)
Public eventMouseWheelOccurs when the mouse wheel moves while the control has focus. (Inherited from Control.)
Public eventMoveOccurs when the control is moved. (Inherited from Control.)
Public eventPaddingChangedOccurs when the control's padding changes. (Inherited from Control.)
Public eventPaintOccurs when the control is redrawn. (Inherited from Control.)
Public eventParentChangedOccurs when the Parent property value changes. (Inherited from Control.)
Public eventPreviewKeyDownOccurs before the KeyDown event when a key is pressed while focus is on this control. (Inherited from Control.)
Public eventQueryAccessibilityHelpOccurs when AccessibleObject is providing help to accessibility applications. (Inherited from Control.)
Public eventQueryContinueDragOccurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. (Inherited from Control.)
Public eventRegionChangedOccurs when the value of the Region property changes. (Inherited from Control.)
Public eventResizeOccurs when the control is resized. (Inherited from Control.)
Public eventRightToLeftChangedOccurs when the RightToLeft property value changes. (Inherited from Control.)
Public eventSizeChangedOccurs when the Size property value changes. (Inherited from Control.)
Public eventStyleChangedOccurs when the control style changes. (Inherited from Control.)
Public eventSystemColorsChangedOccurs when the system colors change. (Inherited from Control.)
Public eventTabIndexChangedOccurs when the TabIndex property value changes. (Inherited from Control.)
Public eventTabStopChangedOccurs when the TabStop property value changes. (Inherited from Control.)
Public eventTextChangedOccurs when the Text property value changes. (Inherited from Control.)
Public eventValidatedOccurs when the control is finished validating. (Inherited from Control.)
Public eventValidatingOccurs when the control is validating. (Inherited from Control.)
Public eventVisibleChangedOccurs when the Visible property value changes. (Inherited from Control.)
Top
  NameDescription
Explicit interface implemetationPrivate methodIDropTarget..::.OnDragDropInfrastructure. Raises the DragDrop event. (Inherited from Control.)
Explicit interface implemetationPrivate methodIDropTarget..::.OnDragEnterInfrastructure. Raises the DragEnter event. (Inherited from Control.)
Explicit interface implemetationPrivate methodIDropTarget..::.OnDragLeaveInfrastructure. Raises the DragLeave event. (Inherited from Control.)
Explicit interface implemetationPrivate methodIDropTarget..::.OnDragOverInfrastructure. Raises the DragOver event. (Inherited from Control.)
Top

A Button can be clicked by using the mouse, ENTER key, or SPACEBAR if the button has focus.

Set the AcceptButton or CancelButton property of a Form 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 ShowDialog method, you can use the DialogResult property of a button to specify the return value of ShowDialog.

You can change the button's appearance. For example, to make it appear flat for a Web look, set the FlatStyle property to FlatStyle..::.Flat. The FlatStyle property can also be set to FlatStyle..::.Popup, which appears flat until the mouse pointer passes over the button; then the button takes on the standard Windows button appearance.

NoteNote

If the control that has focus accepts and processes the ENTER key press, the Button does not process it. For example, if a multiline TextBox or another button has focus, that control processes the ENTER key press instead of the accept button.

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

Visual Basic
Private Sub InitializeMyButton()
    ' Create and initialize a Button.
    Dim button1 As New Button()

    ' Set the button to return a value of OK when clicked.
    button1.DialogResult = DialogResult.OK

    ' Add the button to the form.
    Controls.Add(button1)
End Sub 'InitializeMyButton
C#
private void InitializeMyButton()
 {
    // Create and initialize a Button.
    Button button1 = new Button();

    // Set the button to return a value of OK when clicked.
    button1.DialogResult = DialogResult.OK;

    // Add the button to the form.
    Controls.Add(button1);
 }
 
Visual C++
private:
   void InitializeMyButton()
   {
      // Create and initialize a Button.
      Button^ button1 = gcnew Button;

      // Set the button to return a value of OK when clicked.
      button1->DialogResult = ::DialogResult::OK;

      // Add the button to the form.
      Controls->Add( button1 );
   }

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.NET Framework クラス ライブラリ
Button クラス

Windows のボタン コントロールを表します。

名前空間:  System.Windows.Forms
アセンブリ:  System.Windows.Forms (System.Windows.Forms.dll 内)
Visual Basic
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
<ComVisibleAttribute(True)> _
Public Class Button _
    Inherits ButtonBase _
    Implements IButtonControl
C#
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)]
[ComVisibleAttribute(true)]
public class Button : ButtonBase, IButtonControl
Visual C++
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)]
[ComVisibleAttribute(true)]
public ref class Button : public ButtonBase, 
    IButtonControl
F#
[<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)>]
[<ComVisibleAttribute(true)>]
type Button =  
    class
        inherit ButtonBase
        interface IButtonControl
    end

Button 型で公開されるメンバーは以下のとおりです。

  名前説明
パブリック メソッドButtonButton クラスの新しいインスタンスを初期化します。
このページのトップへ
  名前説明
パブリック プロパティAccessibilityObjectコントロールに割り当てられた AccessibleObject を取得します。 (Control から継承されます。)
パブリック プロパティAccessibleDefaultActionDescriptionユーザー補助クライアント アプリケーションによって使用される、コントロールの既定のアクションの説明を取得または設定します。 (Control から継承されます。)
パブリック プロパティAccessibleDescriptionユーザー補助クライアント アプリケーションによって使用される、コントロールの説明を取得または設定します。 (Control から継承されます。)
パブリック プロパティAccessibleNameユーザー補助クライアント アプリケーションによって使用されるコントロールの名前を取得または設定します。 (Control から継承されます。)
パブリック プロパティAccessibleRoleコントロールのアクセスできる役割を取得または設定します。 (Control から継承されます。)
パブリック プロパティAllowDropユーザーがコントロールにドラッグしたデータを、そのコントロールが受け入れることができるかどうかを示す値を取得または設定します。 (Control から継承されます。)
パブリック プロパティAnchorコントロールがバインドされるコンテナーの端を取得または設定し、親のサイズ変更時に、コントロールのサイズがどのように変化するかを決定します。 (Control から継承されます。)
パブリック プロパティAutoEllipsisコントロールのテキストが、指定されたコントロールの長さを超えることを示す省略記号文字 (...) を、コントロールの右端に表示するかどうかを示す値を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティAutoScrollOffsetScrollControlIntoView でのこのコントロールのスクロール先を取得または設定します。 (Control から継承されます。)
パブリック プロパティAutoSize内容に合わせてコントロールのサイズを変更するかどうかを示す値を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティAutoSizeModeButton を自動的にサイズ変更するときに使用するモードを取得または設定します。
パブリック プロパティBackColorコントロールの背景色を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティBackgroundImageコントロールに表示される背景イメージを取得または設定します。 (Control から継承されます。)
パブリック プロパティBackgroundImageLayoutImageLayout 列挙体で定義された背景イメージ レイアウトを取得または設定します。 (Control から継承されます。)
パブリック プロパティBindingContextコントロールの BindingContext を取得または設定します。 (Control から継承されます。)
パブリック プロパティBottomコントロールの下端とコンテナーのクライアント領域の上端の間の距離をピクセルで取得します。 (Control から継承されます。)
パブリック プロパティBoundsクライアント以外の要素を含むコントロールの、親コントロールに対する相対的なサイズおよび位置をピクセル単位で取得または設定します。 (Control から継承されます。)
プロテクト プロパティCanEnableImeImeMode プロパティをアクティブな値に設定して、IME サポートを有効にできるかどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティCanFocusコントロールがフォーカスを受け取ることができるかどうかを示す値を取得します。 (Control から継承されます。)
プロテクト プロパティCanRaiseEventsコントロールでイベントが発生するかどうかを決定します。 (Control から継承されます。)
パブリック プロパティCanSelectコントロールを選択できるかどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティCaptureコントロールがマウスをキャプチャしたかどうかを示す値を取得または設定します。 (Control から継承されます。)
パブリック プロパティCausesValidationそのコントロールが原因で、フォーカスを受け取ると検証が必要なコントロールに対して、検証が実行されるかどうかを示す値を取得または設定します。 (Control から継承されます。)
パブリック プロパティClientRectangleコントロールのクライアント領域を表す四角形を取得します。 (Control から継承されます。)
パブリック プロパティClientSizeコントロールのクライアント領域の高さと幅を取得または設定します。 (Control から継承されます。)
パブリック プロパティCompanyNameコントロールを含んでいるアプリケーションの会社または作成者の名前を取得します。 (Control から継承されます。)
パブリック プロパティContainerComponent を格納している IContainer を取得します。 (Component から継承されます。)
パブリック プロパティContainsFocusコントロール、またはその子コントロールの 1 つに、現在入力フォーカスがあるかどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティContextMenuコントロールに関連付けられたショートカット メニューを取得または設定します。 (Control から継承されます。)
パブリック プロパティContextMenuStripこのコントロールに関連付けられている ContextMenuStrip を取得または設定します。 (Control から継承されます。)
パブリック プロパティControlsコントロール内に格納されているコントロールのコレクションを取得します。 (Control から継承されます。)
パブリック プロパティCreatedコントロールが作成されているかどうかを示す値を取得します。 (Control から継承されます。)
プロテクト プロパティCreateParamsウィンドウの作成時に、基本クラスの CreateParams を取得します。 (ButtonBase..::.CreateParams をオーバーライドします。)
パブリック プロパティCursorマウス ポインターがコントロールの上にあるときに表示されるカーソルを取得または設定します。 (Control から継承されます。)
パブリック プロパティDataBindingsコントロールのデータ連結を取得します。 (Control から継承されます。)
プロテクト プロパティDefaultCursorコントロールの既定のカーソルを取得または設定します。 (Control から継承されます。)
プロテクト プロパティDefaultImeModeこのコントロールでサポートされている既定の IME (Input Method Editor) モードを取得します。 (ButtonBase から継承されます。)
プロテクト プロパティDefaultMarginコントロール間に既定で指定されている空白をピクセル単位で取得します。 (Control から継承されます。)
プロテクト プロパティDefaultMaximumSizeコントロールの既定の最大サイズとして指定されている長さおよび高さをピクセル単位で取得します。 (Control から継承されます。)
プロテクト プロパティDefaultMinimumSizeコントロールの既定の最小サイズとして指定されている長さおよび高さをピクセル単位で取得します。 (Control から継承されます。)
プロテクト プロパティDefaultPaddingコントロールの内容の内部間隔をピクセル単位で取得します。 (Control から継承されます。)
プロテクト プロパティDefaultSizeコントロールの既定のサイズを取得します。 (ButtonBase から継承されます。)
プロテクト プロパティDesignModeComponent が現在デザイン モードかどうかを示す値を取得します。 (Component から継承されます。)
パブリック プロパティDialogResultボタンをクリックしたときに親フォームに返される値を取得または設定します。
パブリック プロパティDisplayRectangleコントロールの表示領域を表す四角形を取得します。 (Control から継承されます。)
パブリック プロパティDisposing基本 Control クラスが破棄処理中かどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティDockコントロールの境界のうち、親コントロールにドッキングする境界を取得または設定します。また、コントロールのサイズが親コントロール内でどのように変化するかを決定します。 (Control から継承されます。)
プロテクト プロパティDoubleBufferedちらつきを軽減または回避するために、2 次バッファーを使用してコントロールの表面を再描画するかどうかを示す値を取得または設定します。 (Control から継承されます。)
パブリック プロパティEnabledコントロールがユーザーとの対話に応答できるかどうかを示す値を取得または設定します。 (Control から継承されます。)
プロテクト プロパティEventsComponent に結び付けられているイベント ハンドラーのリストを取得します。 (Component から継承されます。)
パブリック プロパティFlatAppearanceチェックの状態およびマウスの状態を示すために使用する境界線の外観と色を取得します。 (ButtonBase から継承されます。)
パブリック プロパティFlatStyleボタン コントロールのフラット スタイルの外観を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティFocusedコントロールに入力フォーカスがあるかどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティFontコントロールによって表示されるテキストのフォントを取得または設定します。 (Control から継承されます。)
プロテクト プロパティFontHeightコントロールのフォントの高さを取得または設定します。 (Control から継承されます。)
パブリック プロパティForeColorコントロールの前景色を取得または設定します。 (Control から継承されます。)
パブリック プロパティHandleコントロールのバインド先のウィンドウ ハンドルを取得します。 (Control から継承されます。)
パブリック プロパティHasChildrenコントロールに 1 つ以上の子コントロールが格納されているかどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティHeightコントロールの高さを取得または設定します。 (Control から継承されます。)
パブリック プロパティImageボタン コントロールに表示されるイメージを取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティImageAlignボタン コントロール上のイメージの配置を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティImageIndexボタン コントロールに表示されているイメージのイメージ リスト内でのインデックス値を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティImageKeyImageList 内のイメージのキー アクセサーを取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティImageListボタン コントロールに表示される Image を保持している ImageList を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティImeModeインフラストラクチャ。 このコントロールでサポートされている IME (Input Method Editor) モードを取得または設定します。 このクラスでは、このプロパティは使用されません。 (ButtonBase から継承されます。)
プロテクト プロパティImeModeBaseコントロールの IME モードを取得または設定します。 (Control から継承されます。)
パブリック プロパティInvokeRequired呼び出し元がコントロールの作成されたスレッドと異なるスレッド上にあるため、コントロールに対してメソッドの呼び出しを実行するときに、呼び出し元で invoke メソッドを呼び出す必要があるかどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティIsAccessibleコントロールがユーザー補助アプリケーションに表示されるかどうかを示す値を取得または設定します。 (Control から継承されます。)
プロテクト プロパティIsDefaultボタン コントロールが既定のボタンかどうかを示す値を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティIsDisposedコントロールが破棄されているかどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティIsHandleCreatedコントロールにハンドルが関連付けられているかどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティIsMirroredコントロールがミラー化されるかどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティLayoutEngineコントロールのレイアウト エンジンのキャッシュされたインスタンスを取得します。 (Control から継承されます。)
パブリック プロパティLeftコントロールの左端とコンテナーのクライアント領域の左端の間の距離をピクセルで取得または設定します。 (Control から継承されます。)
パブリック プロパティLocationコンテナーの左上隅に対する相対座標として、コントロールの左上隅の座標を取得または設定します。 (Control から継承されます。)
パブリック プロパティMarginコントロール間の空白を取得または設定します。 (Control から継承されます。)
パブリック プロパティMaximumSizeGetPreferredSize が指定できる上限のサイズを取得または設定します。 (Control から継承されます。)
パブリック プロパティMinimumSizeGetPreferredSize が指定できる下限のサイズを取得または設定します。 (Control から継承されます。)
パブリック プロパティNameコントロールの名前を取得または設定します。 (Control から継承されます。)
パブリック プロパティPaddingコントロールの埋め込みを取得または設定します。 (Control から継承されます。)
パブリック プロパティParentコントロールの親コンテナーを取得または設定します。 (Control から継承されます。)
パブリック プロパティPreferredSizeコントロールが適合する四角形領域のサイズを取得します。 (Control から継承されます。)
パブリック プロパティProductNameコントロールを格納しているアセンブリの製品名を取得します。 (Control から継承されます。)
パブリック プロパティProductVersionコントロールを格納しているアセンブリのバージョンを取得します。 (Control から継承されます。)
パブリック プロパティRecreatingHandleコントロールが現在そのコントロールのハンドルを再作成中かどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティRegionコントロールに関連付けられたウィンドウ領域を取得または設定します。 (Control から継承されます。)
プロテクト プロパティRenderRightToLeft 互換性のために残されています。 このプロパティは使用されなくなりました。 (Control から継承されます。)
プロテクト プロパティResizeRedrawサイズが変更されたときに、コントロールがコントロール自体を再描画するかどうかを示す値を取得または設定します。 (Control から継承されます。)
パブリック プロパティRightコントロールの右端とコンテナーのクライアント領域の左端の間の距離をピクセルで取得します。 (Control から継承されます。)
パブリック プロパティRightToLeftコントロールの要素が、右から左へ表示されるフォントを使用するロケールをサポートするように配置されているかどうかを示す値を取得または設定します。 (Control から継承されます。)
プロテクト プロパティScaleChildren子コントロールのスケーリングを決定する値を取得します。 (Control から継承されます。)
プロテクト プロパティShowFocusCuesコントロールがフォーカスを示す四角形を表示する必要があるかどうかを示す値を取得します。 (Control から継承されます。)
プロテクト プロパティShowKeyboardCuesユーザー インターフェイスがキーボード アクセラレータを表示または非表示にする適切な状態かどうかを示す値を取得します。 (Control から継承されます。)
パブリック プロパティSiteコントロールのサイトを取得または設定します。 (Control から継承されます。)
パブリック プロパティSizeコントロールの高さと幅を取得または設定します。 (Control から継承されます。)
パブリック プロパティTabIndexコンテナー内のコントロールのタブ オーダーを取得または設定します。 (Control から継承されます。)
パブリック プロパティTabStopユーザーが Tab キーで、このコントロールにフォーカスを移すことができるかどうかを示す値を取得または設定します。 (Control から継承されます。)
パブリック プロパティTagコントロールに関するデータを格納するオブジェクトを取得または設定します。 (Control から継承されます。)
パブリック プロパティTextこのコントロールに関連付けられているテキストを取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティTextAlignボタン コントロールのテキストの配置を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティTextImageRelationテキストおよびイメージの、互いを基準とした相対位置を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティTopコントロールの上端とコンテナーのクライアント領域の上端の間の距離をピクセル単位で取得または設定します。 (Control から継承されます。)
パブリック プロパティTopLevelControl別の Windows フォーム コントロールを親として持たない親コントロールを取得します。 一般的に、これは、コントロールを格納している、最も外側の Form です。 (Control から継承されます。)
パブリック プロパティUseCompatibleTextRenderingテキストのレンダリングに Graphics クラス (GDI+) を使用するか、TextRenderer クラス (GDI) を使用するかを決定する値を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティUseMnemonic前にアンパサンド (&) が付いている最初の文字をコントロールのニーモニック キーとして使用するかどうかを示す値を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティUseVisualStyleBackColorvisual スタイルがサポートされている場合に、visual スタイルを使用して背景を描画するかどうかを決定する値を取得または設定します。 (ButtonBase から継承されます。)
パブリック プロパティUseWaitCursor現在のコントロールおよびすべての子コントロールに待機カーソルを使用するかどうかを示す値を取得または設定します。 (Control から継承されます。)
パブリック プロパティVisibleコントロールとそのすべての子コントロールが表示されているかどうかを示す値を取得または設定します。 (Control から継承されます。)
パブリック プロパティWidthコントロールの幅を取得または設定します。 (Control から継承されます。)
パブリック プロパティWindowTargetインフラストラクチャ。 このクラスでは、このプロパティは使用されません。 (Control から継承されます。)
このページのトップへ
  名前説明
プロテクト メソッドAccessibilityNotifyClients(AccessibleEvents, Int32)指定した子コントロールの指定した AccessibleEvents をユーザー補助クライアント アプリケーションに通知します。 (Control から継承されます。)
プロテクト メソッドAccessibilityNotifyClients(AccessibleEvents, Int32, Int32)指定した子コントロールの指定した AccessibleEvents をユーザー補助クライアント アプリケーションに通知します。 (Control から継承されます。)
パブリック メソッドBeginInvoke(Delegate)コントロールの基になるハンドルが作成されたスレッド上で、指定したデリゲートを非同期的に実行します。 (Control から継承されます。)
パブリック メソッドBeginInvoke(Delegate, array<Object>[]()[])コントロールの基になるハンドルが作成されたスレッド上で、指定した引数で指定したデリゲートを非同期的に実行します。 (Control から継承されます。)
パブリック メソッドBringToFrontコントロールを z オーダーの最前面へ移動します。 (Control から継承されます。)
パブリック メソッドContains指定したコントロールが、コントロールの子かどうかを示す値を取得します。 (Control から継承されます。)
プロテクト メソッドCreateAccessibilityInstanceコントロールの新しいユーザー補助オブジェクトを作成します。 (ButtonBase から継承されます。)
パブリック メソッドCreateControlハンドルおよび子コントロールの作成を含めて、強制的に表示子コントロールを作成します。 (Control から継承されます。)
プロテクト メソッドCreateControlsInstanceコントロールのコントロール コレクションの新しいインスタンスを作成します。 (Control から継承されます。)
パブリック メソッドCreateGraphicsコントロールの Graphics を作成します。 (Control から継承されます。)
プロテクト メソッドCreateHandleコントロールのハンドルを作成します。 (Control から継承されます。)
パブリック メソッドCreateObjRefリモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 (MarshalByRefObject から継承されます。)
プロテクト メソッドDefWndProc指定したメッセージを既定のウィンドウ プロシージャに送信します。 (Control から継承されます。)
プロテクト メソッドDestroyHandleコントロールに関連付けられたハンドルを破棄します。 (Control から継承されます。)
パブリック メソッドDispose()()()Component によって使用されているすべてのリソースを解放します。 (Component から継承されます。)
プロテクト メソッドDispose(Boolean)ButtonBase によって使用されているアンマネージ リソースを解放し、オプションでマネージ リソースも解放します。 (ButtonBase から継承されます。)
パブリック メソッドDoDragDropドラッグ アンド ドロップ操作を開始します。 (Control から継承されます。)
パブリック メソッドDrawToBitmap指定したビットマップへのレンダリングをサポートします。 (Control から継承されます。)
パブリック メソッドEndInvoke渡された IAsyncResult によって表される、非同期操作の戻り値を取得します。 (Control から継承されます。)
パブリック メソッドEquals(Object)指定した Object が、現在の Object と等しいかどうかを判断します。 (Object から継承されます。)
プロテクト メソッドFinalizeComponent がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 (Component から継承されます。)
パブリック メソッドFindFormコントロールがあるフォームを取得します。 (Control から継承されます。)
パブリック メソッドFocusコントロールに入力フォーカスを設定します。 (Control から継承されます。)
プロテクト メソッドGetAccessibilityObjectById指定した AccessibleObject を取得します。 (Control から継承されます。)
プロテクト メソッドGetAutoSizeModeAutoSize プロパティが有効なときのコントロールの動作を示す値を取得します。 (Control から継承されます。)
パブリック メソッドGetChildAtPoint(Point)指定した座標にある子コントロールを取得します。 (Control から継承されます。)
パブリック メソッドGetChildAtPoint(Point, GetChildAtPointSkip)特定の種類の子コントロールを無視するかどうかを指定して、指定した座標にある子コントロールを取得します。 (Control から継承されます。)
パブリック メソッドGetContainerControlコントロールの親チェインの 1 つ上の ContainerControl を返します。 (Control から継承されます。)
パブリック メソッドGetHashCode特定の型のハッシュ関数として機能します。 (Object から継承されます。)
パブリック メソッドGetLifetimeService対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッドGetNextControl子コントロールのタブ オーダー内の 1 つ前または 1 つ後ろのコントロールを取得します。 (Control から継承されます。)
パブリック メソッドGetPreferredSizeコントロールが適合する四角形領域のサイズを取得します。 (ButtonBase から継承されます。)
プロテクト メソッドGetScaledBoundsコントロールのスケールが設定される境界を取得します。 (Control から継承されます。)
プロテクト メソッドGetServiceComponent またはその Container で提供されるサービスを表すオブジェクトを返します。 (Component から継承されます。)
プロテクト メソッドGetStyleコントロールの指定したコントロール スタイル ビットの値を取得します。 (Control から継承されます。)
プロテクト メソッドGetTopLevelコントロールがトップレベル コントロールかどうかを判断します。 (Control から継承されます。)
パブリック メソッドGetType現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッドHideコントロールをユーザーに対して非表示にします。 (Control から継承されます。)
パブリック メソッドInitializeLifetimeService対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
プロテクト メソッドInitLayoutコントロールが別のコンテナーに追加された後、呼び出されます。 (Control から継承されます。)
パブリック メソッドInvalidate()()()コントロールの表面全体を無効化して、コントロールを再描画します。 (Control から継承されます。)
パブリック メソッドInvalidate(Boolean)コントロールの特定の領域を無効にし、そのコントロールに描画メッセージを送信します。 オプションとして、そのコントロールに割り当てられている子コントロールも無効にします。 (Control から継承されます。)
パブリック メソッドInvalidate(Rectangle)コントロールの指定した領域を無効にし (そのコントロールの次の描画操作で再描画される領域を示す更新領域に追加し)、描画メッセージがそのコントロールに送信されるようにします。 (Control から継承されます。)
パブリック メソッドInvalidate(Region)コントロールの指定した領域を無効にし (そのコントロールの次の描画操作で再描画される領域を示す更新領域に追加し)、描画メッセージがそのコントロールに送信されるようにします。 (Control から継承されます。)
パブリック メソッドInvalidate(Rectangle, Boolean)コントロールの指定した領域を無効にし (そのコントロールの次の描画操作で再描画される領域を示す更新領域に追加し)、描画メッセージがそのコントロールに送信されるようにします。 オプションとして、そのコントロールに割り当てられている子コントロールも無効にします。 (Control から継承されます。)
パブリック メソッドInvalidate(Region, Boolean)コントロールの指定した領域を無効にし (そのコントロールの次の描画操作で再描画される領域を示す更新領域に追加し)、描画メッセージがそのコントロールに送信されるようにします。 オプションとして、そのコントロールに割り当てられている子コントロールも無効にします。 (Control から継承されます。)
パブリック メソッドInvoke(Delegate)コントロールの基になるウィンドウ ハンドルを所有するスレッド上で、指定したデリゲートを実行します。 (Control から継承されます。)
パブリック メソッドInvoke(Delegate, array<Object>[]()[])コントロールの基になるウィンドウ ハンドルを所有するスレッド上で、指定した引数リストを使用して、指定したデリゲートを実行します。 (Control から継承されます。)
プロテクト メソッドInvokeGotFocus指定したコントロールの GotFocus イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドInvokeLostFocus指定したコントロールの LostFocus イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドInvokeOnClick指定したコントロールの Click イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドInvokePaint指定したコントロールの Paint イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドInvokePaintBackground指定したコントロールの PaintBackground イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドIsInputChar文字が、コントロールによって認識される入力文字かどうかを判断します。 (Control から継承されます。)
プロテクト メソッドIsInputKey指定されているキーが、通常の入力キーであるか、またはプリプロセスを必要とする特殊なキーであるかを確認します。 (Control から継承されます。)
プロテクト メソッドMemberwiseClone()()()現在の Object の簡易コピーを作成します。 (Object から継承されます。)
プロテクト メソッドMemberwiseClone(Boolean)現在の MarshalByRefObject オブジェクトの簡易コピーを作成します。 (MarshalByRefObject から継承されます。)
パブリック メソッドNotifyDefault既定のボタンであるかどうかを Button に通知します。ボタンはこの通知に応じて外観を調整します。
プロテクト メソッドNotifyInvalidateインフラストラクチャ。 無効化するコントロールの領域を指定して、Invalidated イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnAutoSizeChangedAutoSizeChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnBackColorChangedBackColorChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnBackgroundImageChangedBackgroundImageChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnBackgroundImageLayoutChangedBackgroundImageLayoutChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnBindingContextChangedBindingContextChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnCausesValidationChangedCausesValidationChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnChangeUICuesChangeUICues イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnClickClick イベントを発生させます。 (Control..::.OnClick(EventArgs) をオーバーライドします。)
プロテクト メソッドOnClientSizeChangedClientSizeChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnContextMenuChangedContextMenuChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnContextMenuStripChangedContextMenuStripChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnControlAddedControlAdded イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnControlRemovedControlRemoved イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnCreateControlCreateControl メソッドを発生させます。 (Control から継承されます。)
プロテクト メソッドOnCursorChangedCursorChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnDockChangedDockChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnDoubleClickDoubleClick イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnDragDropDragDrop イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnDragEnterDragEnter イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnDragLeaveDragLeave イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnDragOverDragOver イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnEnabledChangedEnabledChanged イベントを発生させます。 (ButtonBase から継承されます。)
プロテクト メソッドOnEnterEnter イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnFontChangedFontChanged イベントを発生させます。 (Control..::.OnFontChanged(EventArgs) をオーバーライドします。)
プロテクト メソッドOnForeColorChangedForeColorChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnGiveFeedbackGiveFeedback イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnGotFocusGotFocus イベントを発生させます。 (ButtonBase から継承されます。)
プロテクト メソッドOnHandleCreatedHandleCreated イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnHandleDestroyedHandleDestroyed イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnHelpRequestedHelpRequested イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnImeModeChangedImeModeChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnInvalidatedInvalidated イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnKeyDownインフラストラクチャ。 OnKeyUp イベントを発生させます。 (ButtonBase から継承されます。)
プロテクト メソッドOnKeyPressKeyPress イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnKeyUpインフラストラクチャ。 OnKeyUp イベントを発生させます。 (ButtonBase から継承されます。)
プロテクト メソッドOnLayoutLayout イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnLeaveLeave イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnLocationChangedLocationChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnLostFocusインフラストラクチャ。 OnLostFocus イベントを発生させます。 (ButtonBase から継承されます。)
プロテクト メソッドOnMarginChangedMarginChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnMouseCaptureChangedMouseCaptureChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnMouseClickMouseClick イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnMouseDoubleClickMouseDoubleClick イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnMouseDownインフラストラクチャ。 OnMouseDown イベントを発生させます。 (ButtonBase から継承されます。)
プロテクト メソッドOnMouseEnterOnMouseEnter イベントを発生させます。 (ButtonBase..::.OnMouseEnter(EventArgs) をオーバーライドします。)
プロテクト メソッドOnMouseHoverMouseHover イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnMouseLeaveOnMouseLeave イベントを発生させます。 (ButtonBase..::.OnMouseLeave(EventArgs) をオーバーライドします。)
プロテクト メソッドOnMouseMoveインフラストラクチャ。 OnMouseMove イベントを発生させます。 (ButtonBase から継承されます。)
プロテクト メソッドOnMouseUpOnMouseUp イベントを発生させます。 (ButtonBase..::.OnMouseUp(MouseEventArgs) をオーバーライドします。)
プロテクト メソッドOnMouseWheelMouseWheel イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnMoveMove イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnNotifyMessageコントロールに Windows メッセージを通知します。 (Control から継承されます。)
プロテクト メソッドOnPaddingChangedPaddingChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnPaintインフラストラクチャ。 OnPaint イベントを発生させます。 (ButtonBase から継承されます。)
プロテクト メソッドOnPaintBackgroundコントロールの背景を描画します。 (Control から継承されます。)
プロテクト メソッドOnParentBackColorChangedコントロールのコンテナーの BackColor プロパティ値が変更された場合に、BackColorChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnParentBackgroundImageChangedコントロールのコンテナーの BackgroundImage プロパティ値が変更された場合に、BackgroundImageChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnParentBindingContextChangedコントロールのコンテナーの BindingContext プロパティ値が変更された場合に、BindingContextChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnParentChangedParentChanged イベントを発生させます。 (ButtonBase から継承されます。)
プロテクト メソッドOnParentCursorChangedCursorChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnParentEnabledChangedコントロールのコンテナーの Enabled プロパティ値が変更された場合に、EnabledChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnParentFontChangedコントロールのコンテナーの Font プロパティ値が変更された場合に、FontChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnParentForeColorChangedコントロールのコンテナーの ForeColor プロパティ値が変更された場合に、ForeColorChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnParentRightToLeftChangedコントロールのコンテナーの RightToLeft プロパティ値が変更された場合に、RightToLeftChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnParentVisibleChangedコントロールのコンテナーの Visible プロパティ値が変更された場合に、VisibleChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnPreviewKeyDownPreviewKeyDown イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnPrintPaint イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnQueryContinueDragQueryContinueDrag イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnRegionChangedRegionChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnResizeResize イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnRightToLeftChangedRightToLeftChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnSizeChangedSizeChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnStyleChangedStyleChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnSystemColorsChangedSystemColorsChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnTabIndexChangedTabIndexChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnTabStopChangedTabStopChanged イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnTextChangedTextChanged イベントを発生させます。 (ButtonBase..::.OnTextChanged(EventArgs) をオーバーライドします。)
プロテクト メソッドOnValidatedValidated イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnValidatingValidating イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドOnVisibleChangedVisibleChanged イベントを発生させます。 (ButtonBase から継承されます。)
パブリック メソッドPerformClickボタンの Click イベントを生成します。
パブリック メソッドPerformLayout()()()コントロールがレイアウト ロジックをすべての子コントロールに適用するように強制します。 (Control から継承されます。)
パブリック メソッドPerformLayout(Control, String)コントロールがレイアウト ロジックをすべての子コントロールに適用するように強制します。 (Control から継承されます。)
パブリック メソッドPointToClient指定した画面上のポイントを計算してクライアント座標を算出します。 (Control から継承されます。)
パブリック メソッドPointToScreen指定したクライアント ポイントを計算して画面座標を算出します。 (Control から継承されます。)
パブリック メソッドPreProcessControlMessageキーボード メッセージまたは入力メッセージがディスパッチされる前に、メッセージ ループ内の入力メッセージを前処理します。 (Control から継承されます。)
パブリック メソッドPreProcessMessageキーボード メッセージまたは入力メッセージがディスパッチされる前に、メッセージ ループ内の入力メッセージを前処理します。 (Control から継承されます。)
プロテクト メソッドProcessCmdKeyコマンド キーを処理します。 (Control から継承されます。)
プロテクト メソッドProcessDialogCharダイアログ文字を処理します。 (Control から継承されます。)
プロテクト メソッドProcessDialogKeyダイアログ キーを処理します。 (Control から継承されます。)
プロテクト メソッドProcessKeyEventArgsキー メッセージを処理し、適切なコントロール イベントを生成します。 (Control から継承されます。)
プロテクト メソッドProcessKeyMessageキーボード メッセージを処理します。 (Control から継承されます。)
プロテクト メソッドProcessKeyPreviewキーボード メッセージをプレビューします。 (Control から継承されます。)
プロテクト メソッドProcessMnemonicニーモニック文字を処理します。 (Control..::.ProcessMnemonic(Char) をオーバーライドします。)
プロテクト メソッドRaiseDragEventインフラストラクチャ。 適切なドラッグ イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドRaiseKeyEventインフラストラクチャ。 適切なキー イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドRaiseMouseEventインフラストラクチャ。 適切なマウス イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドRaisePaintEventインフラストラクチャ。 適切な描画イベントを発生させます。 (Control から継承されます。)
プロテクト メソッドRecreateHandle強制的にコントロールのハンドルを再作成します。 (Control から継承されます。)
パブリック メソッドRectangleToClient指定した画面上の四角形のサイズと位置をクライアント座標で算出します。 (Control から継承されます。)
パブリック メソッドRectangleToScreen指定したクライアント領域の四角形のサイズと位置を画面座標で算出します。 (Control から継承されます。)
パブリック メソッドRefresh強制的に、コントロールがクライアント領域を無効化し、直後にそのコントロール自体とその子コントロールを再描画するようにします。 (Control から継承されます。)
パブリック メソッドResetBackColorBackColor プロパティを既定値にリセットします。 (Control から継承されます。)
パブリック メソッドResetBindingsBindingSource にバインドされたコントロールに対し、リスト内のすべての項目を再度読み込んで表示値を更新するよう通知します。 (Control から継承されます。)
パブリック メソッドResetCursorCursor プロパティを既定値にリセットします。 (Control から継承されます。)
プロテクト メソッドResetFlagsandPaintインフラストラクチャ。 Button コントロールを押される前の状態にリセットし、再描画します。 (ButtonBase から継承されます。)
パブリック メソッドResetFontFont プロパティを既定値にリセットします。 (Control から継承されます。)
パブリック メソッドResetForeColorForeColor プロパティを既定値にリセットします。 (Control から継承されます。)
パブリック メソッドResetImeModeImeMode プロパティを既定値にリセットします。 (Control から継承されます。)
プロテクト メソッドResetMouseEventArgsインフラストラクチャ。 MouseLeave イベントを処理するためのコントロールをリセットします。 (Control から継承されます。)
パブリック メソッドResetRightToLeftRightToLeft プロパティを既定値にリセットします。 (Control から継承されます。)
パブリック メソッドResetTextText プロパティを既定値にリセットします。 (Control から継承されます。)
パブリック メソッドResumeLayout()()()通常のレイアウト ロジックを再開します。 (Control から継承されます。)
パブリック メソッドResumeLayout(Boolean)通常のレイアウト ロジックを再開します。オプションで、保留中のレイアウト要求のレイアウトを強制的に即時実行します。 (Control から継承されます。)
プロテクト メソッドRtlTranslateAlignment(ContentAlignment)指定した ContentAlignment を適切な ContentAlignment に変換し、テキストを右から左に表示できるようにします。 (Control から継承されます。)
プロテクト メソッドRtlTranslateAlignment(HorizontalAlignment)指定した HorizontalAlignment を適切な HorizontalAlignment に変換し、テキストを右から左に表示できるようにします。 (Control から継承されます。)
プロテクト メソッドRtlTranslateAlignment(LeftRightAlignment)指定した LeftRightAlignment を適切な LeftRightAlignment に変換し、テキストを右から左に表示できるようにします。 (Control から継承されます。)
プロテクト メソッドRtlTranslateContent指定した ContentAlignment を適切な ContentAlignment に変換し、テキストを右から左に表示できるようにします。 (Control から継承されます。)
プロテクト メソッドRtlTranslateHorizontal指定した HorizontalAlignment を適切な HorizontalAlignment に変換し、テキストを右から左に表示できるようにします。 (Control から継承されます。)
プロテクト メソッドRtlTranslateLeftRight指定した LeftRightAlignment を適切な LeftRightAlignment に変換し、テキストを右から左に表示できるようにします。 (Control から継承されます。)
パブリック メソッドScale(Single) 互換性のために残されています。 コントロールおよび子コントロールのスケールを設定します。 (Control から継承されます。)
パブリック メソッドScale(SizeF)指定されたスケール ファクターによってコントロールおよびすべての子コントロールのスケールを設定します。 (Control から継承されます。)
パブリック メソッドScale(Single, Single) 互換性のために残されています。 コントロール全体および子コントロールのスケールを設定します。 (Control から継承されます。)
プロテクト メソッドScaleControlコントロールの位置、サイズ、埋め込み、およびマージンのスケールを設定します。 (Control から継承されます。)
プロテクト メソッドScaleCoreインフラストラクチャ。 このクラスでは、このメソッドは無効です。 (Control から継承されます。)
パブリック メソッドSelect()()()コントロールをアクティブにします。 (Control から継承されます。)
プロテクト メソッドSelect(Boolean, Boolean)子コントロールをアクティブにします。 オプションとして、タブ オーダーでコントロールを選択するときの方向を指定します。 (Control から継承されます。)
パブリック メソッドSelectNextControl次のコントロールをアクティブにします。 (Control から継承されます。)
パブリック メソッドSendToBackコントロールを z オーダーの背面に移動します。 (Control から継承されます。)
プロテクト メソッドSetAutoSizeModeAutoSize プロパティが有効なときのコントロールの動作を示す値を設定します。 (Control から継承されます。)
パブリック メソッドSetBounds(Int32, Int32, Int32, Int32)コントロールの範囲を指定した位置とサイズに設定します。 (Control から継承されます。)
パブリック メソッドSetBounds(Int32, Int32, Int32, Int32, BoundsSpecified)コントロールの指定した範囲を指定した位置とサイズに設定します。 (Control から継承されます。)
プロテクト メソッドSetBoundsCoreこのコントロールの指定した境界を設定する作業を実行します。 (Control から継承されます。)
プロテクト メソッドSetClientSizeCoreコントロールのクライアント領域のサイズを設定します。 (Control から継承されます。)
プロテクト メソッドSetStyle指定した ControlStyles フラグを true または false に設定します。 (Control から継承されます。)
プロテクト メソッドSetTopLevelコントロールをトップレベル コントロールとして設定します。 (Control から継承されます。)
プロテクト メソッドSetVisibleCoreコントロールを指定した表示状態に設定します。 (Control から継承されます。)
パブリック メソッドShowコントロールをユーザーに対して表示します。 (Control から継承されます。)
プロテクト メソッドSizeFromClientSizeクライアント領域の高さおよび幅からコントロール全体のサイズを決定します。 (Control から継承されます。)
パブリック メソッドSuspendLayoutコントロールのレイアウト ロジックを一時的に中断します。 (Control から継承されます。)
パブリック メソッドToStringComponent の名前を格納している String を返します (存在する場合)。 このメソッドはオーバーライドできません。 (Component..::.ToString()()() をオーバーライドします。)
パブリック メソッドUpdateコントロールによって、クライアント領域内の無効化された領域が再描画されます。 (Control から継承されます。)
プロテクト メソッドUpdateBounds()()()コントロールの範囲を現在のサイズと位置で更新します。 (Control から継承されます。)
プロテクト メソッドUpdateBounds(Int32, Int32, Int32, Int32)コントロールの範囲を指定したサイズと位置で更新します。 (Control から継承されます。)
プロテクト メソッドUpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)コントロールの範囲を指定したサイズ、位置、およびクライアント サイズで更新します。 (Control から継承されます。)
プロテクト メソッドUpdateStyles割り当て済みのスタイルを強制的にコントロールに再適用します。 (Control から継承されます。)
プロテクト メソッドUpdateZOrderコントロールを親の z オーダーで更新します。 (Control から継承されます。)
プロテクト メソッドWndProcWindows メッセージを処理します。 (ButtonBase..::.WndProc(Message%) をオーバーライドします。)
このページのトップへ
  名前説明
パブリック イベントAutoSizeChangedAutoSize プロパティの値が変更されたときに発生します。 (ButtonBase から継承されます。)
パブリック イベントBackColorChangedBackColor プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントBackgroundImageChangedBackgroundImage プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントBackgroundImageLayoutChangedBackgroundImageLayout プロパティが変更された場合に発生します。 (Control から継承されます。)
パブリック イベントBindingContextChangedBindingContext プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントCausesValidationChangedCausesValidation プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントChangeUICuesフォーカス四角形またはキーボード インターフェイス (UI) キューが変更されたときに発生します。 (Control から継承されます。)
パブリック イベントClickコントロールがクリックされたときに発生します。 (Control から継承されます。)
パブリック イベントClientSizeChangedClientSize プロパティの値が変更されたときに発生します。 (Control から継承されます。)
パブリック イベントContextMenuChangedContextMenu プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントContextMenuStripChangedContextMenuStrip プロパティの値が変更されたときに発生します。 (Control から継承されます。)
パブリック イベントControlAdded新しいコントロールが Control..::.ControlCollection に追加されたときに発生します。 (Control から継承されます。)
パブリック イベントControlRemovedControl..::.ControlCollection からコントロールが削除されたときに発生します。 (Control から継承されます。)
パブリック イベントCursorChangedCursor プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントDisposedDispose メソッドの呼び出しによってコンポーネントが破棄されると発生します。 (Component から継承されます。)
パブリック イベントDockChangedDock プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントDoubleClickユーザーが Button コントロールをダブルクリックすると発生します。
パブリック イベントDragDropドラッグ アンド ドロップ操作が完了したときに発生します。 (Control から継承されます。)
パブリック イベントDragEnterオブジェクトがコントロールの境界内にドラッグされると発生します。 (Control から継承されます。)
パブリック イベントDragLeaveオブジェクトがコントロールの境界の外へドラッグされると発生します。 (Control から継承されます。)
パブリック イベントDragOverオブジェクトがコントロールの境界を超えてドラッグされると発生します。 (Control から継承されます。)
パブリック イベントEnabledChangedEnabled プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントEnterコントロールが入力されると発生します。 (Control から継承されます。)
パブリック イベントFontChangedFont プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントForeColorChangedForeColor プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントGiveFeedbackドラッグ操作中に発生します。 (Control から継承されます。)
パブリック イベントGotFocusコントロールがフォーカスを受け取ると発生します。 (Control から継承されます。)
パブリック イベントHandleCreatedコントロールに対してハンドルが作成されると発生します。 (Control から継承されます。)
パブリック イベントHandleDestroyedコントロールのハンドルが破棄されているときに発生します。 (Control から継承されます。)
パブリック イベントHelpRequestedユーザーがコントロールのヘルプを要求すると発生します。 (Control から継承されます。)
パブリック イベントImeModeChangedインフラストラクチャ。 ImeMode プロパティが変更されると発生します。 このクラスでは、このイベントは使用されません。 (ButtonBase から継承されます。)
パブリック イベントInvalidatedコントロールの表示で再描画が必要なときに発生します。 (Control から継承されます。)
パブリック イベントKeyDownコントロールにフォーカスがあるときにキーが押されると発生します。 (Control から継承されます。)
パブリック イベントKeyPressコントロールにフォーカスがあるときにキーが押されると発生します。 (Control から継承されます。)
パブリック イベントKeyUpコントロールにフォーカスがあるときにキーが離されると発生します。 (Control から継承されます。)
パブリック イベントLayoutコントロールの子コントロールの位置を変更する必要があるときに発生します。 (Control から継承されます。)
パブリック イベントLeave入力フォーカスがコントロールを離れると発生します。 (Control から継承されます。)
パブリック イベントLocationChangedLocation プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントLostFocusコントロールにフォーカスがなくなると発生します。 (Control から継承されます。)
パブリック イベントMarginChangedコントロールのマージンが変更されたときに発生します。 (Control から継承されます。)
パブリック イベントMouseCaptureChangedコントロールがマウスのキャプチャを失うと発生します。 (Control から継承されます。)
パブリック イベントMouseClickコントロールがマウスでクリックされたときに発生します。 (Control から継承されます。)
パブリック イベントMouseDoubleClickユーザーがマウスで Button コントロールをダブルクリックすると発生します。
パブリック イベントMouseDownマウス ポインターがコントロール上にあり、マウス ボタンがクリックされると発生します。 (Control から継承されます。)
パブリック イベントMouseEnterマウス ポインターによってコントロールが入力されると発生します。 (Control から継承されます。)
パブリック イベントMouseHoverマウス ポインターをコントロールの上に重ねると発生します。 (Control から継承されます。)
パブリック イベントMouseLeaveマウス ポインターがコントロールを離れると発生します。 (Control から継承されます。)
パブリック イベントMouseMoveマウス ポインターがコントロール上を移動すると発生します。 (Control から継承されます。)
パブリック イベントMouseUpマウス ポインターがコントロール上にあり、マウス ボタンが離されると発生します。 (Control から継承されます。)
パブリック イベントMouseWheelコントロールにフォーカスがあるときにマウス ホイールが動くと発生します。 (Control から継承されます。)
パブリック イベントMoveコントロールが移動されると発生します。 (Control から継承されます。)
パブリック イベントPaddingChangedコントロールの埋め込みが変更されたときに発生します。 (Control から継承されます。)
パブリック イベントPaintコントロールが再描画されると発生します。 (Control から継承されます。)
パブリック イベントParentChangedParent プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントPreviewKeyDownこのコントロールにフォーカスがあるときにキーが押された場合、KeyDown イベントの前に発生します。 (Control から継承されます。)
パブリック イベントQueryAccessibilityHelpAccessibleObject がユーザー補助アプリケーションにヘルプを提供したときに発生します。 (Control から継承されます。)
パブリック イベントQueryContinueDragドラッグ アンド ドロップ操作中に発生し、ドラッグ ソースがドラッグ アンド ドロップ操作をキャンセルする必要があるかどうかを決定できるようにします。 (Control から継承されます。)
パブリック イベントRegionChangedRegion プロパティの値が変更されたときに発生します。 (Control から継承されます。)
パブリック イベントResizeコントロールのサイズが変更されると発生します。 (Control から継承されます。)
パブリック イベントRightToLeftChangedRightToLeft プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントSizeChangedSize プロパティの値が変更されたときに発生します。 (Control から継承されます。)
パブリック イベントStyleChangedコントロール スタイルが変更されると発生します。 (Control から継承されます。)
パブリック イベントSystemColorsChangedシステム カラーが変更されると発生します。 (Control から継承されます。)
パブリック イベントTabIndexChangedTabIndex プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントTabStopChangedTabStop プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントTextChangedText プロパティの値が変更された場合に発生します。 (Control から継承されます。)
パブリック イベントValidatedコントロールの検証が終了すると発生します。 (Control から継承されます。)
パブリック イベントValidatingコントロールが検証を行っているときに発生します。 (Control から継承されます。)
パブリック イベントVisibleChangedVisible プロパティの値が変更された場合に発生します。 (Control から継承されます。)
このページのトップへ
  名前説明
明示的なインターフェイス実装プライベート メソッドIDropTarget..::.OnDragDropインフラストラクチャ。 DragDrop イベントを発生させます。 (Control から継承されます。)
明示的なインターフェイス実装プライベート メソッドIDropTarget..::.OnDragEnterインフラストラクチャ。 DragEnter イベントを発生させます。 (Control から継承されます。)
明示的なインターフェイス実装プライベート メソッドIDropTarget..::.OnDragLeaveインフラストラクチャ。 DragLeave イベントを発生させます。 (Control から継承されます。)
明示的なインターフェイス実装プライベート メソッドIDropTarget..::.OnDragOverインフラストラクチャ。 DragOver イベントを発生させます。 (Control から継承されます。)
このページのトップへ

Button は、マウスを使用してクリックできます。ボタンにフォーカスがある場合は Enter キーまたは Space キーを使用することもできます。

FormAcceptButton プロパティまたは CancelButton プロパティを設定すると、ボタンにフォーカスがなくても Enter キーまたは Esc キーを押してボタンをクリックできます。 この設定により、フォームがダイアログ ボックスとして動作します。

ShowDialog メソッドを使用してフォームを表示する場合は、ボタンの DialogResult プロパティを使用して ShowDialog の戻り値を指定します。

ボタンの外観は変更できます。 たとえば、Web 用にフラットな外観にするには FlatStyle プロパティを FlatStyle..::.Flat に設定します。 FlatStyle プロパティを FlatStyle..::.Popup に設定すると、マウス ポインターがボタンの上を通過するまではフラットで、通過した後は標準 Windows ボタンの外観となります。

メモメモ

フォーカスがあるコントロールが Enter キーによる入力を受け入れて処理する場合は、Button による処理は行われません。 たとえば、複数行 TextBox またはほかのボタンにフォーカスがある場合、コントロールはボタン操作を受け入れずに Enter キーによる入力を処理します。

Button を作成し、その DialogResult プロパティを DialogResult..::.OK に設定して、Form に追加するコード例を次に示します。

Visual Basic
Private Sub InitializeMyButton()
    ' Create and initialize a Button.
    Dim button1 As New Button()

    ' Set the button to return a value of OK when clicked.
    button1.DialogResult = DialogResult.OK

    ' Add the button to the form.
    Controls.Add(button1)
End Sub 'InitializeMyButton
C#
private void InitializeMyButton()
 {
    // Create and initialize a Button.
    Button button1 = new Button();

    // Set the button to return a value of OK when clicked.
    button1.DialogResult = DialogResult.OK;

    // Add the button to the form.
    Controls.Add(button1);
 }
 
Visual C++
private:
   void InitializeMyButton()
   {
      // Create and initialize a Button.
      Button^ button1 = gcnew Button;

      // Set the button to return a value of OK when clicked.
      button1->DialogResult = ::DialogResult::OK;

      // Add the button to the form.
      Controls->Add( button1 );
   }

.NET Framework

サポート対象: 4、3.5、3.0、2.0、1.1、1.0

.NET Framework Client Profile

サポート対象: 4、3.5 SP1

Windows 7, Windows Vista SP1 以降, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core はサポート対象外), Windows Server 2008 R2 (SP1 以降で Server Core をサポート), Windows Server 2003 SP2

.NET Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。 インスタンス メンバーの場合は、スレッド セーフであるとは限りません。
コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2012 Microsoft. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker