Windows forms label




















However, the Label control is retained for both backward compatibility and future use, if you choose. Windows Forms Label controls are used to display text or images that cannot be edited by the user.

They are used to identify objects on a form—to provide a description of what a certain control will do if clicked, for example, or to display information in response to a run-time event or process in your application. Because the Label control cannot receive focus, it can also be used to create access keys for other controls. Label Control Overview Explains what this control is and its key features and properties.

Provides data for the DrawItem event. Provides data for the DrawSubItem event. Provides data for the Draw event. Provides data for the DrawNode event. Provides a user interface for indicating that a control on a form has an error associated with it. Provides static methods for retrieving feature information from the current system. Represents an entry in a FileDialog custom place collection for Windows Vista.

Represents a collection of Windows Vista custom places for the FileDialog class. Provides properties that specify the appearance of Button controls whose FlatStyle is Flat. Provides data for the FormClosed event. Provides data for the FormClosing event. Represents a collection of Form objects. Provides data for the GiveFeedback event, which occurs during a drag operation. Implements one row in a PropertyGrid. Contains a collection of GridItem objects. Represents a Windows control that displays a frame around a group of controls with an optional caption.

Provides methods used to render a group box control with or without visual styles. Allows a custom control to prevent the MouseWheel event from being sent to its parent container. Provides data for the HelpRequested event. Provides basic properties for the HScrollBar. Defines a collection of HtmlElement objects. Provides data for the Error event. Provides data for the events defined on HtmlDocument and HtmlElement. Represents the logical window that contains one or more instances of HtmlDocument.

Represents the windows contained within another HtmlWindow. Provides methods to manage a collection of Image objects. Encapsulates the collection of Image objects in an ImageList.

Provides the data portion of an ImageList. Provides data for the InputLanguageChanged event. Provides data for the InputLanguageChanging event.

Stores InputLanguage objects. Provides data for the Invalidated event. Provides data for the ItemChanged event. Provides data for the ItemChecked event of the ListView control. Provides data for the KeyDown or KeyUp event. Provides data for the KeyPress event. Provides a TypeConverter to convert Keys objects to and from other representations. Provides data for the Layout event. Provides a type converter to convert LinkArea. LinkAreaConverter objects to and from various other representations.

Provides data for the LinkClicked event. Provides a type converter for LinkLabel. Link objects. Represents a link within a LinkLabel control. Represents the collection of links within a LinkLabel control. Provides a type converter to convert Binding objects to and from various other representations. Provides functionality to discover a bindable list and the properties of the items contained in the list when they differ from the public properties of the object to which they bind.

Represents a collection of integers in a ListBox. Represents the collection of items in a ListBox. Represents the collection containing the indexes to the selected items in a ListBox.

Represents the collection of selected items in the ListBox. Provides a common implementation of members for the ListBox and ComboBox classes. Provides data for the Format event. Represents a Windows list view control, which displays a collection of items that can be displayed using one of four different views. Represents the collection of column headers in a ListView control. Represents the collection that contains the indexes to the selected items in a ListView control.

Represents a group of items displayed within a ListView control. Represents the collection of groups within a ListView control. Used to indicate the expected drop location when an item is dragged to a new position in a ListView control. This functionality is available only on Windows XP and later.

Represents an item in a ListView control. Represents a subitem of a ListViewItem. Represents a collection of ListViewItem. Provides a type converter to convert ListViewItem objects to and from various other representations. Provides data for the ItemMouseHover event. Provides data for the ItemSelectionChanged event.

Use MenuStrip instead, which replaces and extends the MainMenu control. Provides data for the MaskInputRejected event. Represents the container for multiple-document interface MDI child forms. Contains a collection of MdiClient controls. Represents a collection of MenuItem objects. Represents an individual item that is displayed within a MainMenu or ContextMenu. Displays a message window, also known as a dialog box, which presents a message to the user.

It is a modal window, blocking other actions in the application until the user closes it. A MessageBox can contain text, buttons, and symbols that inform and instruct the user. Represents a Windows control that enables the user to select a date using a visual monthly calendar display.

Contains information about an area of a MonthCalendar control. Provides data for the Navigate event. Specifies a component that creates an icon in the notification area. Provides information specifying how acceleration should be performed on a spin box also known as an up-down control when the up or down button is pressed for specified time period.

Displays a standard dialog box that prompts the user to open a file. Provides a type converter to convert Padding values to and from various other representations. Enables users to change page-related print settings, including margins and paper orientation. Provides data for the Paint event. Provides data for the Popup event. Provides data for the PreviewKeyDown event. Lets users select a printer and choose which sections of the document to print from a Windows Forms application.

Represents the raw preview part of print previewing from a Windows Forms application, without any dialog boxes or buttons. Represents a dialog box form that contains a PrintPreviewControl for printing from a Windows Forms application. Provides Color structures that are colors of a Windows display element.

Provides methods used to render a progress bar control with visual styles. Contains a collection of PropertyTab objects. Maintains a Binding between an object's property and a data-bound control property.

Provides data for the QueryAccessibilityHelp event. Provides data for the QueryContinueDrag event. Provides data for events that need a true or false answer to a question. Enables the user to select a single option from a group of choices when paired with other RadioButton controls.

Provides information about the RadioButton control to accessibility client applications. Provides methods used to render an option button control also known as a radio button with or without visual styles.

Indicates which ImageList a property is related to. Provides data for the RetrieveVirtualItem event. A TypeConverter for the ScrollableControl. DockPaddingEdges class. Provides methods used to render a scroll bar control with visual styles. Provides data for the SearchForVirtualItem event. Provides a type converter to convert SelectionRange objects to and from various other types. Represents a control consisting of a movable bar that divides a container's display area into two resizable panels.

Represents a splitter control that enables the user to resize docked controls. Splitter has been replaced by SplitContainer and is provided only for compatibility with previous versions. Provides data for SplitterMoving and the SplitterMoved events. Creates a panel that is associated with a SplitContainer.

NET 5 and later versions. Represents the collection of panels in a StatusBar control. Represents a panel in a StatusBar control. Use the StatusStrip control instead, which replaces and extends the StatusBar control. Provides data for the PanelClick event. Contains a collection of Control objects. Contains a collection of TabPage objects. Provides data for the Selecting and Deselecting events of a TabControl control. Provides data for the Selected and Deselected events of a TabControl control.

Provides data for the CellPaint event. A collection that stores ColumnStyle objects. Represents a panel that dynamically lays out its contents in a grid composed of rows and columns. A collection that stores RowStyle objects. Implements the basic functionality that represents the appearance and behavior of a table layout. Represents a single tab page in a TabControl. Contains the collection of controls that the TabPage uses. Provides methods used to render a tab control with visual styles.

A task dialog allows to display information and get simple input from the user. It is similar to a MessageBox in that it is formatted by the operating system but provides a lot more features. Represents a collection of TaskDialogButton objects.

Represents an icon that can be shown in the main area of a task dialog by setting the Icon property or in the footnote of a task dialog by setting the Icon property.

Represents a collection of TaskDialogRadioButton objects. Provides methods used to render a text box control with visual styles. Implements a timer that raises an event at user-defined intervals.

This timer is optimized for use in Windows Forms applications and must be used in a window. Use ToolStrip instead, which replaces and extends the ToolBar control.

Provides data for the ButtonClick event. Provides information that accessibility applications use to adjust the user interface of a ToolStrip for users with impairments. Provides data for the RenderArrow event. Represents a selectable ToolStripItem that can contain text and images. Represents the center panel of a ToolStripContainer control. Provides data for the RendererChanged event. OnEnabledChanged EventArgs. OnEnter EventArgs. OnFontChanged EventArgs. OnGotFocus EventArgs.

OnHandleCreated EventArgs. OnHandleDestroyed EventArgs. OnInvalidated InvalidateEventArgs. OnLayout LayoutEventArgs. OnLeave EventArgs. OnLocationChanged EventArgs. OnLostFocus EventArgs. OnMarginChanged EventArgs. OnMouseEnter EventArgs. OnMouseHover EventArgs. OnMouseLeave EventArgs. OnMove EventArgs. OnNotifyMessage Message. Notifies the control of Windows messages.

OnPaddingChanged EventArgs. OnPaint PaintEventArgs. OnParentChanged EventArgs. OnPrint PaintEventArgs. OnRegionChanged EventArgs. OnResize EventArgs. OnSizeChanged EventArgs. OnStyleChanged EventArgs.

OnTextChanged EventArgs. OnValidated EventArgs. OnValidating CancelEventArgs. OnVisibleChanged EventArgs. Forces the control to apply layout logic to all its child controls. PerformLayout Control, String. PointInLink Int32, Int PointToClient Point. Computes the location of the specified screen point into client coordinates. PointToScreen Point. Computes the location of the specified client point into screen coordinates.

PreProcessControlMessage Message. Preprocesses keyboard or input messages within the message loop before they are dispatched. PreProcessMessage Message. ProcessCmdKey Message, Keys. Processes a command key. ProcessDialogChar Char. Processes a dialog character. ProcessDialogKey Keys. ProcessKeyEventArgs Message. Processes a key message and generates the appropriate control events. ProcessKeyMessage Message. Processes a keyboard message. ProcessKeyPreview Message. Previews a keyboard message. ProcessMnemonic Char.

Processes a mnemonic character. Raises the appropriate drag event. Raises the appropriate key event. Raises the appropriate mouse event. Raises the appropriate paint event. Forces the re-creation of the handle for the control. RectangleToClient Rectangle. Computes the size and location of the specified screen rectangle in client coordinates. RectangleToScreen Rectangle. Computes the size and location of the specified client rectangle in screen coordinates.

Provides constants for rescaling the control when a DPI change occurs. Resumes usual layout logic. ResumeLayout Boolean. Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests. RtlTranslateAlignment ContentAlignment. RtlTranslateAlignment HorizontalAlignment. RtlTranslateContent ContentAlignment. RtlTranslateHorizontal HorizontalAlignment. Scale Single. Scales the control and any child controls. Scale Single, Single. Scales the entire control and any child controls.

Scale SizeF. Scales the control and all child controls by the specified scaling factor. Scales a logical bitmap value to it's equivalent device unit value when a DPI change occurs. Scales a control's location, size, padding and margin. ScaleCore Single, Single. This method is not relevant for this class. Activates the control. Select Boolean, Boolean. Activates the next control. Sends the control to the back of the z-order.

Sets the bounds of the control to the specified location and size. Sets the specified bounds of the control to the specified location and size. Sets the size of the client area of the control. SetStyle ControlStyles, Boolean.

SetTopLevel Boolean. Sets the control as the top-level control. SetVisibleCore Boolean. Sets the control to the specified visible state. Displays the control to the user.

SizeFromClientSize Size. Determines the size of the entire control from the height and width of its client area. Temporarily suspends the layout logic for the control. Causes the control to redraw the invalidated regions within its client area.

Updates the bounds of the control with the current size and location. Updates the bounds of the control with the specified size and location. Updates the bounds of the control with the specified size, location, and client size. Forces the assigned styles to be reapplied to the control. Updates the control in its parent's z-order. WndProc Message.

Occurs when the focus or keyboard user interface UI cues change. Occurs when the control is clicked. Occurs when the control is double-clicked. Occurs when a drag-and-drop operation is completed. Occurs when an object is dragged into the control's bounds.

Occurs when an object is dragged out of the control's bounds. Occurs when an object is dragged over the control's bounds. Occurs when the control is entered. Occurs during a drag operation. Occurs when the control receives focus. Occurs when a handle is created for the control. Occurs when the control's handle is in the process of being destroyed.

Occurs when the user requests help for a control. Occurs when a control's display requires redrawing. Occurs when the user presses a key while the label has focus.

Occurs when the user releases a key while the label has focus. Occurs when a control should reposition its child controls. Occurs when the input focus leaves the control. Occurs when the control loses focus. Occurs when the control's margin changes. Occurs when the control loses mouse capture.

Occurs when the control is clicked by the mouse. Occurs when the control is double clicked by the mouse. Occurs when the mouse pointer is over the control and a mouse button is pressed.

Occurs when the mouse pointer enters the control. Occurs when the mouse pointer rests on the control. Occurs when the mouse pointer leaves the control. Occurs when the mouse pointer is moved over the control.

Occurs when the mouse pointer is over the control and a mouse button is released. Occurs when the mouse wheel moves while the control has focus. Occurs when the control is moved. Occurs when the control's padding changes.

Next Button in C. Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New. Most popular in C.



0コメント

  • 1000 / 1000