- Элемент управления ComboBox (Windows Forms) ComboBox Control (Windows Forms)
- в этом разделе In This Section
- Справочник Reference
- Связанные разделы Related Sections
- Общие сведения об элементе управления ComboBox (Windows Forms) ComboBox Control Overview (Windows Forms)
- Практическое руководство. Добавление и удаление элементов, отображаемых в элементах управления ComboBox, ListBox и CheckedListBox в Windows Forms How to: Add and Remove Items from a Windows Forms ComboBox, ListBox, or CheckedListBox Control
- Добавление элементов To add items
- Удаление элемента To remove an item
- Удаление всех элементов To remove all items
- Программирование на C, C# и Java
- Уроки программирования, алгоритмы, статьи, исходники, примеры программ и полезные советы
- Как добавить в ComboBox пункты. Как использовать ComboBox
- Combo Box Class
- Definition
- Examples
- Remarks
- Constructors
- Properties
- Methods
Элемент управления ComboBox (Windows Forms) ComboBox Control (Windows Forms)
ComboBox Элемент управления Windows Forms используется для вывода данных в раскрывающемся поле со списком. The Windows Forms ComboBox control is used to display data in a drop-down combo box. По умолчанию ComboBox элемент управления отображается в двух частях: Верхняя часть — это текстовое поле, позволяющее пользователю ввести элемент списка. By default, the ComboBox control appears in two parts: the top part is a text box that allows the user to type a list item. Вторая часть — это поле со списком, в котором отображается список элементов, из которых пользователь может выбрать один из них. The second part is a list box that displays a list of items from which the user can select one.
в этом разделе In This Section
Общие сведения об элементе управления ComboBox ComboBox Control Overview
Описание элемента управления, его основных возможностей и свойств. Explains what this control is and its key features and properties.
Справочник Reference
Класс ComboBox ComboBox class
Описание класса и всех его членов. Describes this class and has links to all its members.
Связанные разделы Related Sections
Создание списка для выбора элементов в Windows Forms Windows Forms Controls Used to List Options
Предоставляет список действий, которые можно выполнить с помощью списков, полей со списками и списков с установленными флажками. Provides a list of things you can do with list boxes, combo boxes, and checked list boxes.
Общие сведения об элементе управления ComboBox (Windows Forms) ComboBox Control Overview (Windows Forms)
ComboBoxЭлемент управления Windows Forms используется для вывода данных в раскрывающемся поле со списком. The Windows Forms ComboBox control is used to display data in a drop-down combo box. По умолчанию ComboBox элемент управления отображается в двух частях: Верхняя часть — это текстовое поле, позволяющее пользователю ввести элемент списка. By default, the ComboBox control appears in two parts: the top part is a text box that allows the user to type a list item. Вторая часть — это поле со списком, в котором отображается список элементов, из которых пользователь может выбрать один из них. The second part is a list box that displays a list of items from which the user can select one. Дополнительные сведения о других стилях поля со списком см. в разделе когда следует использовать Windows Forms ComboBox вместо ListBox. For more information on other styles of combo box, see When to Use a Windows Forms ComboBox Instead of a ListBox.
SelectedIndexСвойство возвращает целочисленное значение, соответствующее выбранному элементу списка. The SelectedIndex property returns an integer value that corresponds to the selected list item. Вы можете программно изменить выбранный элемент, изменив SelectedIndex значение в коде; соответствующий элемент в списке будет отображаться в текстовом поле поля со списком. You can programmatically change the selected item by changing the SelectedIndex value in code; the corresponding item in the list will appear in the text box portion of the combo box. Если элемент не выбран, SelectedIndex значение равно-1. If no item is selected, the SelectedIndex value is -1. Если выбран первый элемент в списке, то SelectedIndex значение равно 0. If the first item in the list is selected, then the SelectedIndex value is 0. SelectedItemСвойство аналогично свойству SelectedIndex , но возвращает сам элемент, обычно строковое значение. The SelectedItem property is similar to SelectedIndex , but returns the item itself, usually a string value. CountСвойство отражает количество элементов в списке, а значение Count свойства всегда равно одному из значений, превышающим максимально возможное SelectedIndex значение, поскольку SelectedIndex отсчитывается от нуля. The Count property reflects the number of items in the list, and the value of the Count property is always one more than the largest possible SelectedIndex value because SelectedIndex is zero-based.
Чтобы добавить или удалить элементы в ComboBox элементе управления, используйте Add метод, Insert Clear или Remove . To add or delete items in a ComboBox control, use the Add, Insert, Clear or Remove method. Кроме того, можно добавить элементы в список с помощью Items свойства в конструкторе. Alternatively, you can add items to the list by using the Items property in the designer.
Практическое руководство. Добавление и удаление элементов, отображаемых в элементах управления ComboBox, ListBox и CheckedListBox в Windows Forms How to: Add and Remove Items from a Windows Forms ComboBox, ListBox, or CheckedListBox Control
Элементы могут быть добавлены в Windows Forms поле со списком, списком или списком флажков различными способами, поскольку эти элементы управления могут быть привязаны к различным источникам данных. Items can be added to a Windows Forms combo box, list box, or checked list box in a variety of ways, because these controls can be bound to a variety of data sources. Однако в этом разделе демонстрируется простейший метод и не требуется привязка данных. However, this topic demonstrates the simplest method and requires no data binding. Отображаемые элементы обычно являются строками. Однако можно использовать любой объект. The items displayed are usually strings; however, any object can be used. Текст, отображаемый в элементе управления, является значением, возвращаемым ToString методом объекта. The text that is displayed in the control is the value returned by the object’s ToString method.
Добавление элементов To add items
Добавьте строку или объект в список с помощью Add метода ObjectCollection класса. Add the string or object to the list by using the Add method of the ObjectCollection class. Ссылка на коллекцию осуществляется с помощью Items Свойства: The collection is referenced using the Items property:
Вставьте строку или объект в нужную точку списка с помощью Insert метода: Insert the string or object at the desired point in the list with the Insert method:
Назначьте весь массив Items коллекции: Assign an entire array to the Items collection:
Удаление элемента To remove an item
Вызовите Remove метод или, RemoveAt чтобы удалить элементы. Call the Remove or RemoveAt method to delete items.
Remove содержит один аргумент, указывающий удаляемый элемент. RemoveAt Remove has one argument that specifies the item to remove. RemoveAt Удаляет элемент с указанным номером индекса. removes the item with the specified index number.
Удаление всех элементов To remove all items
Вызовите Clear метод, чтобы удалить все элементы из коллекции: Call the Clear method to remove all items from the collection:
Программирование на C, C# и Java
Уроки программирования, алгоритмы, статьи, исходники, примеры программ и полезные советы
ОСТОРОЖНО МОШЕННИКИ! В последнее время в социальных сетях участились случаи предложения помощи в написании программ от лиц, прикрывающихся сайтом vscode.ru. Мы никогда не пишем первыми и не размещаем никакие материалы в посторонних группах ВК. Для связи с нами используйте исключительно эти контакты: vscoderu@yandex.ru, https://vk.com/vscode
Как добавить в ComboBox пункты. Как использовать ComboBox
ComboBox – это элемент управления Windows Forms, который представляет собой поле со списком.
Однако при первым знакомстве с ним не все понимают, как добавить в ComboBox пункты.
Для этого в форме программы нужно выделить ComboBox, кликнув на него левой кнопкой мыши. В верхнем правом углу появится стрелка , при нажатии на которую вылезет вот такое окошечко:
Далее надо нажать на “Изменить элементы…”, откроется окно:
В него мы и записываем нужные нам пункты, а затем нажимаем “ОК”.
Теперь при запуске формы мы сможем выбрать в ComboBox’e нужный нам пункт.
Кроме того можно добавлять пункты в самом коде, используя свойство comboBox1.Items.Add().
В скобках мы пишем, какой пункт мы хотим добавить.
Например, можно это делать при загрузке формы, дважды щёлкнув на форму, чтобы перейти в нужный участок кода. Там мы для примера напишем:
Запускаем программу, и вот, что мы видим:
Теперь к нашим имеющимся (или вместо, если не хотите возиться в форме) добавились пункты, указанные в коде.
Но как же нам теперь использовать их?
Доступ к пунктам СomboBox’a в коде можно получить, используя свойство comboBox1.SelectedIndex.
Индексы в СomboBox’e – это и есть пункты его списка, начинающиеся сверху. В C# индексы считаются с нуля, так что самый верхний пункт списка (у нас это vscode.ru) будет иметь индекс 0, ниже его – индекс 1, ещё ниже – индекс 2 и так далее.
Сейчас мы напишем кусочек кода, который покажет действие этого свойства. В данном коде при выборе элементов, чьи индексы написаны (0 и 1), в программе появляется MessageBox с сообщением. В форме мы дважды кликам на СomboBox, а затем пишем:
Combo Box Class
Definition
Represents a Windows combo box control.
Examples
The following code example is a complete application showing how you can use the Add method to add items to a ComboBox, the FindString method to find items in a ComboBox, and the BeginUpdate and EndUpdate methods to efficiently add a large number items to a ComboBox. The ability to store values that are different from displayed text is inherited from ListControl. For an example of how to use this feature, see the ListControl class.
You must add references to the System.Drawing and System.Windows.Forms namespaces to run this example.
Remarks
A ComboBox displays a text box combined with a ListBox, which enables the user to select items from the list or enter a new value.
The DropDownStyle property specifies whether the list is always displayed or whether the list is displayed in a drop-down. The DropDownStyle property also specifies whether the text portion can be edited. See ComboBoxStyle for the available settings and their effects. There is no setting to always display the list and disallow entering a new value. To display a list to which no new values can be added, use a ListBox control.
To add or remove objects in the list at run time, use methods of the ComboBox.ObjectCollection class (through the Items property of the ComboBox). You can assign an array of object references with the AddRange method. The list then displays the default string value for each object. You can add individual objects with the Add method. You can delete items with the Remove method or clear the entire list with the Clear method.
In addition to display and selection functionality, the ComboBox also provides features that enable you to efficiently add items to the ComboBox and to find text within the items of the list. With the BeginUpdate and EndUpdate methods, you can add a large number of items to the ComboBox without the control being repainted each time an item is added to the list. The FindString and FindStringExact methods enable you to search for an item in the list that contains a specific search string.
You can use these properties to manage the currently selected item in the list, the Text property to specify the string displayed in the editing field, the SelectedIndex property to get or set the current item, and the SelectedItem property to get or set a reference to the object.
If you have a ListBox, ComboBox, or CheckedListBox on a base Windows Forms page and want to modify the string collections of those controls in a derived form, the string collections of those controls in the base form must be empty. If the string collections are not empty, they become read-only when you derive another form.
Constructors
Initializes a new instance of the ComboBox class.
Properties
Gets the AccessibleObject assigned to the control.
(Inherited from Control)
Gets or sets the default action description of the control for use by accessibility client applications.
(Inherited from Control)
Gets or sets the description of the control used by accessibility client applications.
(Inherited from Control)
Gets or sets the name of the control used by accessibility client applications.
(Inherited from Control)
Gets or sets the accessible role of the control.
(Inherited from Control)
Gets or sets a value indicating whether the control can accept data that the user drags onto it.
(Inherited from Control)
Gets a value indicating whether the list enables selection of list items.
(Inherited from ListControl)
Gets 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)
Gets or sets a custom StringCollection to use when the AutoCompleteSource property is set to CustomSource .
Gets or sets an option that controls how automatic completion works for the ComboBox.
Gets or sets a value specifying the source of complete strings used for automatic completion.
Gets or sets where this control is scrolled to in ScrollControlIntoView(Control).
(Inherited from Control)
This property is not relevant for this class.
(Inherited from Control)
Gets or sets the background color for the control.
This property is not relevant to this class.
Gets or sets the background image layout as defined in the ImageLayout enumeration.
Gets or sets the background image layout as defined in the ImageLayout enumeration.
(Inherited from Control)
Gets or sets the BindingContext for the control.
(Inherited from Control)
Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container’s client area.
(Inherited from Control)
Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control.
(Inherited from Control)
Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support.
(Inherited from Control)
Gets a value indicating whether the control can receive focus.
(Inherited from Control)
Determines if events can be raised on the control.
(Inherited from Control)
Gets a value indicating whether the control can be selected.
(Inherited from Control)
Gets or sets a value indicating whether the control has captured the mouse.
(Inherited from Control)
Gets 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)
Gets the rectangle that represents the client area of the control.
(Inherited from Control)
Gets or sets the height and width of the client area of the control.
(Inherited from Control)
Gets the name of the company or creator of the application containing the control.
(Inherited from Control)
Gets the IContainer that contains the Component.
(Inherited from Component)
Gets a value indicating whether the control, or one of its child controls, currently has the input focus.
(Inherited from Control)
Gets or sets the shortcut menu associated with the control.
(Inherited from Control)
Gets or sets the ContextMenuStrip associated with this control.
(Inherited from Control)
Gets the collection of controls contained within the control.
(Inherited from Control)
Gets a value indicating whether the control has been created.
(Inherited from Control)
Gets the required creation parameters when the control handle is created.
Gets or sets the cursor that is displayed when the mouse pointer is over the control.
(Inherited from Control)
Gets the data bindings for the control.
(Inherited from Control)
Gets the CurrencyManager associated with this control.
(Inherited from ListControl)
Gets or sets the data source for this ComboBox.
Gets or sets the data source for this ListControl.
(Inherited from ListControl)
Gets or sets the default cursor for the control.
(Inherited from Control)
Gets the default Input Method Editor (IME) mode supported by the control.
(Inherited from Control)
Gets the space, in pixels, that is specified by default between controls.
(Inherited from Control)
Gets the length and height, in pixels, that is specified as the default maximum size of a control.
(Inherited from Control)
Gets the length and height, in pixels, that is specified as the default minimum size of a control.
(Inherited from Control)
Gets the internal spacing, in pixels, of the contents of a control.
(Inherited from Control)
Gets the default size of the control.
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)
Gets the DPI value for the display device where the control is currently being displayed.
(Inherited from Control)
Gets or sets the property to display for this ListControl.
(Inherited from ListControl)
Gets the rectangle that represents the display area of the control.
(Inherited from Control)
Gets a value indicating whether the base Control class is in the process of disposing.
(Inherited from Control)
Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.
(Inherited from Control)
Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker.
(Inherited from Control)
Gets or sets a value indicating whether your code or the operating system will handle drawing of elements in the list.
Gets or sets the height in pixels of the drop-down portion of the ComboBox.
Gets or sets a value specifying the style of the combo box.
Gets or sets the width of the of the drop-down portion of a combo box.
Gets or sets a value indicating whether the combo box is displaying its drop-down portion.
Gets or sets a value indicating whether the control can respond to user interaction.
(Inherited from Control)
Gets the list of event handlers that are attached to this Component.
(Inherited from Component)
Gets or sets the appearance of the ComboBox.
Gets a value indicating whether the ComboBox has focus.
Gets or sets the font of the text displayed by the control.
(Inherited from Control)
Gets or sets the height of the font of the control.
(Inherited from Control)
Gets or sets the foreground color of the control.
Gets or sets the IFormatProvider that provides custom formatting behavior.
(Inherited from ListControl)
Gets or sets the format-specifier characters that indicate how a value is to be displayed.
(Inherited from ListControl)
Gets or sets a value indicating whether formatting is applied to the DisplayMember property of the ListControl.
(Inherited from ListControl)
Gets the window handle that the control is bound to.
(Inherited from Control)
Gets a value indicating whether the control contains one or more child controls.
(Inherited from Control)
Gets or sets the height of the control.
(Inherited from Control)
Gets or sets the Input Method Editor (IME) mode of the control.
(Inherited from Control)
Gets or sets the IME mode of a control.
(Inherited from Control)
Gets or sets a value indicating whether the control should resize to avoid showing partial items.
Gets 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)
Gets or sets a value indicating whether the control is visible to accessibility applications.
(Inherited from Control)
Gets a value indicating whether the control has been disposed of.
(Inherited from Control)
Gets a value indicating whether the control has a handle associated with it.
(Inherited from Control)
Gets a value indicating whether the control is mirrored.
(Inherited from Control)
Gets or sets the height of an item in the combo box.
Gets an object representing the collection of the items contained in this ComboBox.
Gets a cached instance of the control’s layout engine.
(Inherited from Control)
Gets 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)
Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.
(Inherited from Control)
Gets or sets the space between controls.
(Inherited from Control)
Gets or sets the maximum number of items to be shown in the drop-down portion of the ComboBox.
Gets or sets the size that is the upper limit that the GetPreferredSize(Size) method can specify.
Gets or sets the size that is the upper limit that GetPreferredSize(Size) can specify.
(Inherited from Control)
Gets or sets the number of characters a user can type into the ComboBox.
Gets or sets the size that is the lower limit that the GetPreferredSize(Size) method can specify.
Gets or sets the size that is the lower limit that GetPreferredSize(Size) can specify.
(Inherited from Control)
Gets or sets the name of the control.
(Inherited from Control)
This property is not relevant for this class.
Gets or sets padding within the control.
(Inherited from Control)
Gets or sets the parent container of the control.
(Inherited from Control)
Gets the preferred height of the ComboBox.
Gets the size of a rectangular area into which the control can fit.
(Inherited from Control)
Gets the product name of the assembly containing the control.
(Inherited from Control)
Gets the version of the assembly containing the control.
(Inherited from Control)
Gets a value indicating whether the control is currently re-creating its handle.
(Inherited from Control)
Gets or sets the window region associated with the control.
(Inherited from Control)
This property is now obsolete.
(Inherited from Control)
Gets or sets a value indicating whether the control redraws itself when resized.
(Inherited from Control)
Gets the distance, in pixels, between the right edge of the control and the left edge of its container’s client area.
(Inherited from Control)
Gets or sets a value indicating whether control’s elements are aligned to support locales using right-to-left fonts.
(Inherited from Control)
Gets a value that determines the scaling of child controls.
(Inherited from Control)
Gets or sets the index specifying the currently selected item.
Gets or sets currently selected item in the ComboBox.
Gets or sets the text that is selected in the editable portion of a ComboBox.
Gets or sets the value of the member property specified by the ValueMember property.
(Inherited from ListControl)
Gets or sets the number of characters selected in the editable portion of the combo box.
Gets or sets the starting index of text selected in the combo box.
Gets a value indicating whether the control should display focus rectangles.
(Inherited from Control)
Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators.
(Inherited from Control)
Gets or sets the site of the control.
(Inherited from Control)
Gets or sets the height and width of the control.
(Inherited from Control)
Gets or sets a value indicating whether the items in the combo box are sorted.
Gets or sets the tab order of the control within its container.
(Inherited from Control)
Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.
(Inherited from Control)
Gets or sets the object that contains data about the control.
(Inherited from Control)
Gets or sets the text associated with this control.
Gets 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)
Gets 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)
Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls.
(Inherited from Control)
Gets or sets the path of the property to use as the actual value for the items in the ListControl.
(Inherited from ListControl)
Gets or sets a value indicating whether the control and all its child controls are displayed.
(Inherited from Control)
Gets or sets the width of the control.
(Inherited from Control)
This property is not relevant for this class.
(Inherited from Control)
Methods
Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control.
(Inherited from Control)
Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control .
(Inherited from Control)
Adds the specified items to the combo box.
Executes the specified delegate asynchronously on the thread that the control’s underlying handle was created on.
(Inherited from Control)
Executes the specified delegate asynchronously with the specified arguments, on the thread that the control’s underlying handle was created on.
(Inherited from Control)
Maintains performance when items are added to the ComboBox one at a time.
Brings the control to the front of the z-order.
(Inherited from Control)
Retrieves a value indicating whether the specified control is a child of the control.
(Inherited from Control)
Creates a new accessibility object for the control.
Creates a new accessibility object for the control.
(Inherited from Control)
Forces the creation of the visible control, including the creation of the handle and any visible child controls.
(Inherited from Control)
Creates a new instance of the control collection for the control.
(Inherited from Control)
Creates the Graphics for the control.
(Inherited from Control)
Creates a handle for the control.
Creates a handle for the control.
(Inherited from Control)
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Sends the specified message to the default window procedure.
(Inherited from Control)
Destroys the handle associated with the control.
(Inherited from Control)
Releases all resources used by the Component.
(Inherited from Component)
Releases the unmanaged resources used by the ComboBox and optionally releases the managed resources.
Begins a drag-and-drop operation.
(Inherited from Control)
Supports rendering to the specified bitmap.
(Inherited from Control)
Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.
(Inherited from Control)
Resumes painting the ComboBox control after painting is suspended by the BeginUpdate() method.
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Retrieves the current value of the ListControl item, if it is a property of an object, given the item.
(Inherited from ListControl)
Returns the current value of the ListControl item, if it is a property of an object given the item and the property name.
(Inherited from ListControl)
Retrieves the form that the control is on.
(Inherited from Control)
Returns the index of the first item in the ComboBox that starts with the specified string.
Returns the index of the first item in the ComboBox beyond the specified index that contains the specified string. The search is not case sensitive.
Finds the first item in the combo box that matches the specified string.
Finds the first item after the specified index that matches the specified string.
Sets input focus to the control.
(Inherited from Control)
Retrieves the specified AccessibleObject.
(Inherited from Control)
Retrieves a value indicating how a control will behave when its AutoSize property is enabled.
(Inherited from Control)
Retrieves the child control that is located at the specified coordinates.
(Inherited from Control)
Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.
(Inherited from Control)
Returns the next ContainerControl up the control’s chain of parent controls.
(Inherited from Control)
Serves as the default hash function.
(Inherited from Object)
Returns the height of an item in the ComboBox.
Returns the text representation of the specified item.
(Inherited from ListControl)
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Retrieves the next control forward or back in the tab order of child controls.
(Inherited from Control)
Retrieves the size of a rectangular area into which a control can be fitted.
(Inherited from Control)
Retrieves the bounds within which the control is scaled.
(Inherited from Control)
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component)
Retrieves the value of the specified control style bit for the control.
(Inherited from Control)
Determines if the control is a top-level control.
(Inherited from Control)
Gets the Type of the current instance.
(Inherited from Object)
Conceals the control from the user.
(Inherited from Control)
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Called after the control has been added to another container.
(Inherited from Control)
Invalidates the entire surface of the control and causes the control to be redrawn.
(Inherited from Control)
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)
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)
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)
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)
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)
Executes the specified delegate on the thread that owns the control’s underlying window handle.
(Inherited from Control)
Executes the specified delegate, on the thread that owns the control’s underlying window handle, with the specified list of arguments.
(Inherited from Control)
Raises the GotFocus event for the specified control.
(Inherited from Control)
Raises the LostFocus event for the specified control.
(Inherited from Control)
Raises the Click event for the specified control.
(Inherited from Control)
Raises the Paint event for the specified control.
(Inherited from Control)
Raises the PaintBackground event for the specified control.
(Inherited from Control)
Determines if a character is an input character that the control recognizes.
(Inherited from Control)
Determines whether the specified key is a regular input key or a special key that requires preprocessing.
Converts a Logical DPI value to its equivalent DeviceUnit DPI value.
(Inherited from Control)
Transforms a size from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for width and height.
(Inherited from Control)
Creates a shallow copy of the current Object.
(Inherited from Object)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
Raises the Invalidated event with a specified region of the control to invalidate.
(Inherited from Control)
(Inherited from Control)
(Inherited from Control)
(Inherited from Control)
(Inherited from ListControl)
(Inherited from Control)
Raises the ChangeUICues event.
(Inherited from Control)
Raises the Click event.
(Inherited from Control)
(Inherited from Control)
(Inherited from Control)
(Inherited from Control)
Raises the ControlAdded event.
(Inherited from Control)
(Inherited from Control)
(Inherited from Control)
(Inherited from Control)
Raises the DockChanged event.
(Inherited from Control)
Raises the DoubleClick event.
(Inherited from Control)
(Inherited from Control)
(Inherited from Control)
Raises the DragDrop event.
(Inherited from Control)
Raises the DragEnter event.
(Inherited from Control)
Raises the DragLeave event.
(Inherited from Control)
Raises the DragOver event.
(Inherited from Control)
Raises the DrawItem event.
Raises the DropDown event.
(Inherited from Control)
Raises the Enter event.
(Inherited from Control)
Raises the FontChanged event.
Raises the Format event.
(Inherited from ListControl)
(Inherited from ListControl)
(Inherited from ListControl)
(Inherited from ListControl)
Raises the GiveFeedback event.
(Inherited from Control)
Raises the GotFocus event.
(Inherited from Control)
(Inherited from Control)
Raises the Invalidated event.
(Inherited from Control)
Raises the KeyDown event.
Raises the KeyDown event.
(Inherited from Control)
Raises the KeyPress event.
Raises the KeyUp event.
(Inherited from Control)
Raises the Layout event.
(Inherited from Control)
Raises the Leave event.
(Inherited from Control)
(Inherited from Control)
Raises the LostFocus event.
(Inherited from Control)
Raises the MeasureItem event.
(Inherited from Control)
Raises the MouseClick event.
(Inherited from Control)
(Inherited from Control)
Raises the MouseDown event.
(Inherited from Control)
Raises the MouseEnter event.
Raises the MouseEnter event.
(Inherited from Control)
Raises the MouseHover event.
(Inherited from Control)
Raises the MouseLeave event.
Raises the MouseLeave event.
(Inherited from Control)
Raises the MouseMove event.
(Inherited from Control)
Raises the MouseUp event.
(Inherited from Control)
Raises the MouseWheel event.
(Inherited from Control)
Raises the Move event.
(Inherited from Control)
Notifies the control of Windows messages.
(Inherited from Control)
(Inherited from Control)
Raises the Paint event.
(Inherited from Control)
Paints the background of the control.
(Inherited from Control)
Raises the BackgroundImageChanged event when the BackgroundImage property value of the control’s container changes.
(Inherited from Control)
Raises the BindingContextChanged event when the BindingContext property value of the control’s container changes.
(Inherited from Control)
(Inherited from Control)
(Inherited from Control)
Raises the EnabledChanged event when the Enabled property value of the control’s container changes.
(Inherited from Control)
Raises the FontChanged event when the Font property value of the control’s container changes.
(Inherited from Control)
Raises the ForeColorChanged event when the ForeColor property value of the control’s container changes.
(Inherited from Control)
Raises the RightToLeftChanged event when the RightToLeft property value of the control’s container changes.
(Inherited from Control)
Raises the VisibleChanged event when the Visible property value of the control’s container changes.