Windows forms component collection 2005




















Learn more about bidirectional Unicode characters Show hidden characters. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. NET Foundation under one or more agreements. Collections ;. Design ;. Reflection ;. Forms ;. Override to display a different help topic. CollectionEditor " ;. TryGetAttribute component , out InheritanceAttribute attribute. IsAssignableFrom itemType.

CreateComponent itemType , null ;. GetDesigner instance is IComponentInitializer initializer. InitializeNewComponent null ;. CreateInstance host , itemType , null , null ;. The input is an arrayList returned as an Object. Empty ;. GetProperties value [ " Name " ];. GetValue value ;. Raises the Resize event. Raises the ResizeBegin event. Raises the ResizeEnd event. Raises the RightToLeftChanged event. Raises the Scroll event. Raises the Shown event. Raises the SizeChanged event.

Raises the StyleChanged event. Raises the SystemColorsChanged event. Raises the TabIndexChanged event. Raises the TabStopChanged event. Raises the TextChanged event. Raises the Validated event. Raises the Validating event. Raises the VisibleChanged event.

Forces the control to invalidate its client area and immediately redraw itself and any child controls. Resets the BackColor property to its default value. Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values.

Resets the Cursor property to its default value. Resets the Font property to its default value. Resets the ForeColor property to its default value. Resets the ImeMode property to its default value. Resets the control to handle the MouseLeave event. Resets the RightToLeft property to its default value. Resets the Text property to its default value Empty. Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.

Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. Sets a value indicating how a control will behave when its AutoSize property is enabled. Sets the client size of the form. This will adjust the bounds of the form to make the client size the requested size.

Sets a specified ControlStyles flag to either true or false. Verifies the value of the control losing focus by causing the Validating and Validated events to occur, in that order. Verifies the value of the control that is losing focus; conditionally dependent on whether automatic validation is turned on. Causes all of the child controls within a control that support validation to validate their data.

Occurs when the AutoSize property changes. Occurs when the AutoValidate property changes. Occurs when the value of the BackColor property changes. Occurs when the value of the BackgroundImage property changes.

Occurs when the BackgroundImageLayout property changes. Occurs when the value of the BindingContext property changes. Occurs when the value of the CausesValidation property changes. Occurs when the value of the ClientSize property changes. Occurs when the value of the ContextMenu property changes.

Occurs when the value of the ContextMenuStrip property changes. Occurs when a new control is added to the Control. Occurs when a control is removed from the Control. Occurs when the value of the Cursor property changes. Occurs when the component is disposed by a call to the Dispose method. Occurs when the value of the Dock property changes. Occurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed. Occurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred.

Occurs when the Enabled property value has changed. Occurs when the Font property value changes. Occurs when the ForeColor property value changes. Occurs when the ImeMode property has changed. Occurs when the Location property value has changed. Occurs when the Margin property changes.

Occurs when the value of the MaximizedBounds property has changed. Occurs when the value of the MaximumSize property has changed. Occurs when the value of the MinimumSize property has changed.

Occurs when the Parent property value changes. Occurs before the KeyDown event when a key is pressed while focus is on this control. Occurs when AccessibleObject is providing help to accessibility applications. Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. Occurs when the value of the Region property changes. Occurs when the RightToLeft property value changes.

Occurs after the value of the RightToLeftLayout property changes. Occurs when the Size property value changes. Occurs when the value of the TabIndex property changes. Occurs when the TabStop property changes. Occurs when the TabStop property value changes.

Occurs when the Text property value changes. Occurs when the Visible property value changes. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Form Class Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Namespace: System. Forms Assembly: System. Represents a window or dialog box that makes up an application's user interface. In this article.

Inherited from ScrollableControl. Determines whether the user has enabled full window drag. Inherited from Control. Gets or sets the description of the control used by accessibility client applications. Gets or sets the name of the control used by accessibility client applications. Gets or sets the accessible role of the control.

Gets or sets the active control on the container control. Inherited from ContainerControl. Gets the currently active multiple-document interface MDI child window. Gets or sets a value indicating whether the control can accept data that the user drags onto it. Gets or sets a value indicating whether the opacity of the form can be adjusted. Gets or sets the dimensions that the control was designed to. Gets the scaling factor between the current and design-time automatic scaling dimensions.

Gets or sets the automatic scaling mode of the control. Gets or sets a value indicating whether the form enables autoscrolling. Gets or sets the size of the auto-scroll margin. Gets or sets the minimum size of the auto-scroll.

Gets or sets the location of the auto-scroll position. This property is not relevant for this class. Gets or sets the mode by which the form automatically resizes itself. Gets or sets the background image displayed in the control. Gets or sets the button control that is clicked when the user presses the ESC key.

Gets a value indicating whether the control can receive focus. Determines if events can be raised on the control. Gets a value indicating whether the control can be selected. Gets or sets a value indicating whether the control has captured the mouse. Gets the rectangle that represents the client area of the control.

Gets the name of the company or creator of the application containing the control. Inherited from Component. Gets or sets the shortcut menu associated with the control. Gets the collection of controls contained within the control. Gets a value indicating whether the control has been created. Gets the required creation parameters when the control handle is created.

Gets the current run-time dimensions of the screen. Gets or sets the cursor that is displayed when the mouse pointer is over the control. Gets the data bindings for the control. Gets or sets the default cursor for the control. Gets the space, in pixels, that is specified by default between controls. Gets the internal spacing, in pixels, of the contents of a control. Gets or sets the size and location of the form on the Windows desktop. Gets the DPI value for the display device where the control is currently being displayed.

Gets the rectangle that represents the virtual display area of the control. Gets the dock padding settings for all edges of the control. Gets or sets a value indicating whether the control can respond to user interaction. Gets a value indicating whether the control has input focus. Gets or sets the font of the text displayed by the control. Gets or sets the height of the font of the control. Gets or sets the foreground color of the control.

Gets the window handle that the control is bound to. Gets a value indicating whether the control contains one or more child controls. Gets or sets the height of the control. Gets the characteristics associated with the horizontal scroll bar. Gets or sets a value indicating whether the horizontal scroll bar is visible. Gets or sets the IME mode of a control. Gets or sets a value indicating whether the control is visible to accessibility applications.

Gets a value indicating whether the control has been disposed of. Gets a value indicating whether the control has a handle associated with it. Gets a value indicating whether the form is a multiple-document interface MDI child form. Gets a value indicating whether the control is mirrored. Gets a cached instance of the control's layout engine. Gets or sets the space between controls.

Gets or sets the current multiple-document interface MDI parent form of this form. Gets or sets the name of the control. Gets or sets padding within the control. Gets or sets the parent container of the control. Gets the form that the container control is assigned to. Gets the size of a rectangular area into which the control can fit. Gets the product name of the assembly containing the control.

Gets the version of the assembly containing the control. Gets a value indicating whether the control is currently re-creating its handle. Gets or sets the window region associated with the control. This property is now obsolete. Gets or sets a value indicating whether the control redraws itself when resized.

Gets or sets a value indicating whether right-to-left mirror placement is turned on. Gets a value that determines the scaling of child controls. Gets a value indicating whether the control should display focus rectangles.

Gets or sets a value indicating whether an icon is displayed in the caption bar of the form. Gets or sets a value indicating whether the form is displayed in the Windows taskbar. Gets a value indicating whether the window will be activated when it is shown. Gets or sets the site of the control. Gets or sets the style of the size grip to display in the lower-right corner of the form. Gets or sets the object that contains data about the control.

Gets or sets the text associated with this control. Gets or sets a value indicating whether to display the form as a top-level window. Gets or sets a value indicating whether the form should be displayed as a topmost form. Gets or sets the color that will represent transparent areas of the form. Gets the characteristics associated with the vertical scroll bar. Gets or sets a value indicating whether the control and all its child controls are displayed. Gets or sets a value indicating whether the vertical scroll bar is visible.

Gets or sets the width of the control. Gets or sets a value that indicates whether form is minimized, maximized, or normal. ActivateMdiChild Form. AddOwnedForm Form. AdjustFormScrollbars Boolean. BeginInvoke Action. BeginInvoke Delegate. BeginInvoke Delegate, Object[]. Brings the control to the front of the z-order. Centers the position of the form within the bounds of the parent form. Contains Control. Retrieves a value indicating whether the specified control is a child of the control.

Creates a new accessibility object for the control. CreateObjRef Type. Inherited from MarshalByRefObject. DefWndProc Message. Destroys the handle associated with the control. Dispose Boolean. Begins a drag-and-drop operation. DrawToBitmap Bitmap, Rectangle. Supports rendering to the specified bitmap.

EndInvoke IAsyncResult. Equals Object. Determines whether the specified object is equal to the current object. Inherited from Object. Retrieves the form that the control is on. Sets input focus to the control. GetAutoScaleSize Font. Gets the size when autoscaling the form based on a specified font.

In addition to the Windows Forms controls covered in this section, you can add ActiveX and custom controls to Windows Forms. If you do not find the control you need listed here, you can also create your own. For more information about choosing the control you need, see Windows Forms Controls by Function. NET Framework. Controls with Built-In Owner-Drawing Support Describes how to alter aspects of a control's appearance that are not available through properties.

BackgroundWorker Component Enables a form or control to run an operation asynchronously. BindingNavigator Control Provides the navigation and manipulation user interface UI for controls that are bound to data. BindingSource Component Encapsulates a data source for binding to controls. Button Control Presents a standard button that the user can click to perform actions. CheckBox Control Indicates whether a condition is on or off. CheckedListBox Control Displays a list of items with a check box next to each item.

ColorDialog Component Allows the user to select a color from a palette in a pre-configured dialog box and to add custom colors to that palette. ComboBox Control Displays data in a drop-down combo box. ContextMenu Component Provides users with an easily accessible menu of frequently used commands that are associated with the selected object.

Although ContextMenuStrip replaces and adds functionality to the ContextMenu control of previous versions, ContextMenu is retained for both backward compatibility and future use if so desired. ContextMenuStrip Control Represents a shortcut menu. DataGrid Control Displays tabular data from a dataset and allows for updates to the data source.

DataGridView Control Provides a flexible, extensible system for displaying and editing tabular data. DateTimePicker Control Allows the user to select a single item from a list of dates or times. Dialog-Box Controls and Components Describes a set of controls that allow users to perform standard interactions with the application or system. DomainUpDown Control Displays text strings that a user can browse through and select from. ErrorProvider Component Displays error information to the user in a non-intrusive way.

FileDialog Class Provides base-class functionality for file dialog boxes. FlowLayoutPanel Control Represents a panel that dynamically lays out its contents horizontally or vertically. FolderBrowserDialog Component Displays an interface with which users can browse and select a directory or create a new one. FontDialog Component Exposes the fonts that are currently installed on the system.

GroupBox Control Provides an identifiable grouping for other controls. HScrollBar and VScrollBar Controls Provide navigation through a list of items or a large amount of information by scrolling either horizontally or vertically within an application or control.



0コメント

  • 1000 / 1000