NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ComboBox Members

Public:

Constructor

ComboBox Constructor Creates a new ComboBox control. The default style for the combo is a regular DropDown Combo.

Properties

AccessibilityObject (inherited from RichControl) The Accessibility Object for this RichControl
AccessibleDefaultActionDescription (inherited from RichControl) The default action description of the control
AccessibleDescription (inherited from RichControl) The accessible description of the control
AccessibleHelpProvider (inherited from RichControl) The help provider for this RichControl
AccessibleName (inherited from RichControl) The accessible name of the control
AccessibleRole (inherited from RichControl) The accessible role of the control
AllowDrop (inherited from RichControl) The allowDrop property. If allowDrop is set to true then this control will allow drag and drop operations and events to be used.
AllowTransparency (inherited from RichControl) Determines if the control should be allowed to have the opacity adjusted. This is primarily a performance optimization, in that you can always set the opacity to any value, and that will force AllowTransparency to true. However, setting the opacity to any given value will switch the control into layered mode. By setting the AllowTransparency property to false the control will actually switch out of layered mode, which provides better performance if you don't intend to adjust the opacity.
Anchor (inherited from RichControl) The current value of the anchor property. The anchor property determines which edges of the control are anchored to the container's edges.
BackColor (inherited from FormatControl) FormatControl overrides BackColor so it can return the current back color based on any kind of ambients the associated format object is providing.
BackgroundImage [To be supplied.]
BindingManager (inherited from RichControl) [To be supplied.]
Bindings (inherited from RichControl) Retrieves the bindings for this control.
Bottom (inherited from Control) The bottom coordinate of this control.
Bounds (inherited from Control) The bounds of this control. This is the window coordinates of the control in parent client coordinates.
CanFocus (inherited from Control) Checks if this control can receive focus. The result is true if the control has a handle and if it and all of its parent controls are both visible and enabled.
CanSelect (inherited from Control) Checks if this control can be selected. The result is true if the control is contained in a form and if all of its parent controls are both visible and enabled.
Capture (inherited from Control) If this control has captured the mouse then this will return true.
CausesValidation (inherited from Control) Indicates whether entering this control causes validation on the controls requiring validation. This is set to false usually for things like the Help button, etc...
ClientRectangle (inherited from Control) The client rect of the control.
ClientSize (inherited from Control) The size of the clientRect.
CompanyName (inherited from RichControl) Retrieves the company name of this specific component.
ContainsFocus (inherited from Control) Indicates whether the control or one of its children currently has the system focus.
ContextMenu (inherited from RichControl) The contextMenu associated with this control. The contextMenu will be shown when the user right clicks the mouse on the control.
Controls (inherited from Control) Collection of child controls.
Created (inherited from Control) Returns true if the control has been created.
Cursor (inherited from RichControl) Retrieves the cursor that will be displayed when the mouse is over this control.
DataSource (inherited from ListControl) The ListSource to consume as this ListBox's source of data. When set, a user can not modify the Items collection.
DisplayMember (inherited from ListControl) If the ListBox contains objects that support properties, this indicates which property of the object to show. If "", the object shows it's ToString().
DisplayRectangle (inherited from Control) Returns the client rect of the display area of the control. For the base control class, this is identical to getClientRect. However, inheriting controls may want to change this if their client area differs from their display area.
Disposed (inherited from Control) Indicates that the control has been disposed, and is no longer a valid Windows control even though the object instance is still alive.
Disposing (inherited from Control) Indicates that the control is in the process of being beendisposed, and is no longer a valid Windows control even though the object instance is still alive.
Dock (inherited from RichControl) The dock property. The dock property controls to which edge of the container this control is docked to. For example, when docked to the top of the container, the control will be displayed flush at the top of the container, extending the length of the container.
DrawMode Retrieves the value of the DrawMode property. The DrawMode property controls whether the control is drawn by Windows or by the user.
DroppedDown Indicates whether the DropDown of the combo is currently dropped down.
Enabled (inherited from Control) The current enabled state of this control.
Focused Returns true if this control has focus.
Font (inherited from FormatControl) FormatControl overrides Font so it can return the current font based on any kind of ambients the associated format object is providing.
ForeColor (inherited from FormatControl) FormatControl overrides ForeColor so it can return the current fore color based on any kind of ambients the associated format object is providing.
Format (inherited from FormatControl) The formatting object the control uses for Value<->Text conversion (with support for different conversions for display and edit mode) and for ForeColor/BackColor/Font enhancements. Format objects available include NumericFormat for numeric types, DateTimeFormat for DateTimes, and GenericFormat for value-to-text conversion based on TypeConverters.
Handle (inherited from Control) The HWND handle that this control is bound to. If the handle has not yet been created, this will force handle creation.
HandleCreated (inherited from Control) Whether or not this control has a handle associated with it.
Height (inherited from Control) The height of this control
IMEMode (inherited from RichControl) Specifies a value that determines the IME (Input Method Editor) status of the object when that object is selected.
IntegralHeight Indicates if the combo should avoid showing partial Items. If so, then only full items will be displayed, and the list portion will be resized to prevent partial items from being shown. Otherwise, they will be shown
InvokeRequired (inherited from RichControl) Determines if the caller must call invoke when making method calls to this control. Controls in WinForms are bound to a specific thread, and are not thread safe. Therefore, if you are calling a control's method from a different thread, you must use the control's invoke method to marshal the call to the proper thread. This function can be used to determine if you must call invoke, which can be handy if you don't know what thread owns a control. There are five functions on a control that are safe to call from any thread: GetInvokeRequired, Invoke, BeginInvoke, EndInvoke and CreateGraphics. For all other metohd calls, you should use one of the invoke methods.
IsAccessible (inherited from RichControl) Indicates whether or not this control is an accessible control i.e. whether it should be visible to accessibility applications.
ItemHeight Returns the height of an item in the combo box. When drawMode is Normal or OwnerDrawFixed, all items have the same height. When drawMode is OwnerDrawVariable, this method returns the height that will be given to new items added to the combo box. To determine the actual height of an item, use the GetItemHeight() method with an integer parameter.
Items Collection of the items contained in this ComboBox.
Left (inherited from Control) The left coordinate of this control.
Location (inherited from Control) The location of this control.
MaxDropDownItems The maximum number of items to be shown in the dropdown portion of the ComboBox. This number can be between 1 and 100.
MaxLength The maximum length of the text the user may type into the edit control of a combo box.
Opacity (inherited from RichControl) Determines the opacity of the control. This can only be set on top level controls. Opacity requires Windows 2000 or later, and is ignored on earlier operating systems.
Parent (inherited from Control) The parent of this control.
PreferredHeight The preferred height of the combobox control.
ProductName (inherited from RichControl) Retrieves the product name of this specific component.
ProductVersion (inherited from RichControl) Retrieves the product version of this specific component.
RecreatingHandle (inherited from Control) This is true if the control is currently recreating its handle.
Region (inherited from RichControl) The Region associated with this control. (defines the outline/silhouette/boundary of control)
Right (inherited from Control) The right coordinate of this control.
RightToLeft (inherited from RichControl) This is used for international applications where the language is written from RightToLeft. When this property is true, control placement and text will be from right to left.
SelectedIndex The [zero based] index of the currently selected item in the combos list. Note If the value of index is-1, then the ComboBox is set to have no selection.
SelectedItem The handle to the object that is currently selected in the combos list.
SelectedText The selected text in the edit component of the ComboBox. If the ComboBox has ComboBoxStyle.DROPDOWNLIST, the return is an empty string ("").
SelectedValue (inherited from ListControl) [To be supplied.]
SelectionLength The length, in characters, of the selection in the editbox.
SelectionStart The [zero-based] index of the first character in the current text selection.
Site (inherited from MarshalByRefComponent) Gets or sets the site of the component.
Size (inherited from Control) The size of this control.
Sorted Indicates if the Combos list is sorted or not.
Style The type of combo that we are right now. The value would come from the System.WinForms.ComboBoxStyle enumeration.
TabIndex (inherited from Control) The tab index of this control. A tab index may consist of any valid integer number greater than or equal to zero. If more than one control on the same parent control has the same tab index, the z-order of the controls will be used to determine the order to pick the controls.
TabStop (inherited from Control) A boolean value indicating whether the user can give the focus to this control using the TAB key.
Text [To be supplied.]
Top (inherited from Control) Top coordinate of this control.
TopLevel (inherited from Control) true if this control is a top level window, meaning that it has no parent.
TopLevelControl (inherited from Control) The top level control that contains this control. This doesn't have to be the same as the value returned from getForm since forms can be parented to other controls.
Value (inherited from FormatControl) The value of the RichControl. This is used with the Format property to format a string to push/pull into the Text property (if the Format property is null, this property sync's up with the Text property.)
ValueMember (inherited from ListControl) [To be supplied.]
Visible (inherited from Control) Controls whether the control is visible.
Width (inherited from Control) The width of this control.
WindowTarget (inherited from Control) The target of Win32 window messages.

Methods

BeginInvoke (inherited from RichControl) Overloaded. [To be supplied.]
BeginUpdate Disables redrawing of the combo box. A call to beginUpdate() must be balanced by a following call to endUpdate(). Following a call to beginUpdate(), any redrawing caused by operations performed on the combo box is deferred until the call to endUpdate().
BringToFront (inherited from Control) Brings this control to the front of the zorder.
CallWndProc (inherited from Control) Dispatch the method to this window's wndProc directly.
Contains (inherited from Control) Checks if a control is a child of this control.
CreateControl (inherited from Control) Forces the creation of the control. This includes the creation of the handle, and any child controls.
CreateGraphics (inherited from RichControl) Overloaded. [To be supplied.]
CreateWindowGraphics (inherited from RichControl) Creates a Graphics for the entire window of the control rather than just it's client area. The controls foreground color and background color become the default values for the Graphics. The returned Graphics must be disposed through a call to its dispose() method when it is no longer needed. The Graphics Object is only valid for the duration of the current window's message.
Dispose (inherited from RichControl) [To be supplied.]
DoDragDrop (inherited from RichControl) Begins a drag operation. The allowedEffects determine which drag operations can occur. If the drag operation needs to interop with applications in another process, data should either be a base managed class (String, Bitmap, or Metafile) or some Object that implements System.ComponentModel.IPersistable. data can also be any Object that implements System.WinForms.IDataObject.
EndInvoke (inherited from RichControl) Retrieves the return value of the asynchronous operation represented by the IAsyncResult interface passed. If the async operation has not been completed, this function will block until the result is available.
EndUpdate Reenables redrawing of the combo box. A call to beginUpdate() must be balanced by a following call to endUpdate(). Following a call to beginUpdate(), any redrawing caused by operations performed on the combo box is deferred until the call to endUpdate().
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
FindForm (inherited from RichControl) Retrieves the form that this control is on. The control's parent may not be the same as the form.
FindString Overloaded. [To be supplied.]
FindStringExact Overloaded. [To be supplied.]
Focus (inherited from Control) Attempts to set focus to this control.
GetChildAtPoint (inherited from Control) Retrieves the child control that is located at the specified client coordinates.
GetContainer (inherited from MarshalByRefComponent) Returns the component's container.
GetContainerControl (inherited from Control) Returns the closest ContainerControl in the control's chain of parent controls and forms.
GetDesignMode (inherited from MarshalByRefComponent) Determines whether the component is currently in design mode.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetItemHeight Returns the height of the given item in an OwnerDrawVariable style combo box. This method should not be used for Normal or OwnerDrawFixed style combo boxes.
GetItemText (inherited from ListControl) [To be supplied.]
GetLifetimeService (inherited from MarshalByRefObject) This method is used return a lifetime service object that is used to control the lifetime policy to the object. For the default Lifetime service this will be an object of type ILease.
GetNextControl (inherited from Control) Retrieves the next control in the tab order of child controls.
GetServiceObject (inherited from MarshalByRefComponent) The implementation of IServiceObjectProvider
GetType (inherited from Object) Gets the Type of the Object.
Hide (inherited from Control) Hides the control by setting the visible property to false;
InitializeLifetimeService (inherited from MarshalByRefObject)  
Invalidate (inherited from Control) Overloaded. [To be supplied.]
Invoke (inherited from RichControl) Overloaded. [To be supplied.]
PerformLayout (inherited from Control) Overloaded. [To be supplied.]
PointToClient (inherited from Control) Computes the location of the screen point p in client coords.
PointToScreen (inherited from Control) Computes the location of the client point p in screen coords.
PreProcessMessage (inherited from Control) This method is called by the application's message loop to pre-process input messages before they are dispatched. Possible values for the msg.message field are WM_KEYDOWN, WM_SYSKEYDOWN, WM_CHAR, and WM_SYSCHAR. If this method processes the message it must return true, in which case the message loop will not dispatch the message. For WM_KEYDOWN and WM_SYSKEYDOWN messages, preProcessMessage() first calls processCmdKey() to check for command keys such as accelerators and menu shortcuts. If processCmdKey() doesn't process the message, then isInputKey() is called to check whether the key message represents an input key for the control. Finally, if isInputKey() indicates that the control isn't interested in the key message, then processDialogKey() is called to check for dialog keys such as TAB, arrow keys, and mnemonics. For WM_CHAR messages, preProcessMessage() first calls isInputChar() to check whether the character message represents an input character for the control. If isInputChar() indicates that the control isn't interested in the character message, then processDialogChar() is called to check for dialog characters such as mnemonics. For WM_SYSCHAR messages, preProcessMessage() calls processDialogChar() to check for dialog characters such as mnemonics. When overriding preProcessMessage(), a control should return true to indicate that it has processed the message. For messages that aren't processed by the control, the result of "base.preProcessMessage()" should be returned. Controls will typically override one of the more specialized methods (isInputChar(), isInputKey(), processCmdKey(), processDialogChar(), or processDialogKey()) instead of overriding preProcessMessage().
RectangleToClient (inherited from Control) Computes the location of the screen rectangle r in client coords.
RectangleToScreen (inherited from Control) Computes the location of the client rectangle r in screen coords.
Refresh (inherited from Control) Forces the control to invalidate and immediately repaint itself and any children.
ResetBackColor (inherited from RichControl) Resets the back color to be based on the parent's back color.
ResetBindings (inherited from RichControl) [To be supplied.]
ResetCursor (inherited from RichControl) [To be supplied.]
ResetFont (inherited from RichControl) Resets the font to be based on the parent's font.
ResetForeColor (inherited from RichControl) Resets the fore color to be based on the parent's fore color.
ResetItemHeight Resets the itemHeight property.
ResetRightToLeft (inherited from RichControl) Resets the RightToLeft to be the default.
ResetText (inherited from Control) Resets the text to it's default value.
ResumeLayout (inherited from Control) Overloaded. [To be supplied.]
Scale (inherited from Control) Overloaded. [To be supplied.]
Select Overloaded. [To be supplied.]
SelectAll Selects all the text in the editable portion of the ComboBox.
SelectNextControl (inherited from Control) Selects the next control following ctl.
SendMessage (inherited from Control) Overloaded. [To be supplied.]
SendToBack (inherited from Control) sends this control to the back of the z-order
SetBounds (inherited from Control) Overloaded. [To be supplied.]
SetClientSize (inherited from Control) Sets the height and width of the client area of the control.
SetLocation (inherited from Control) Sets the location of this control.
SetNewControls (inherited from Control) Performs the work of setting the array of the child controls contained in this control.
SetSize (inherited from Control) Sets the size of this control.
ShouldPersistBackColor [To be supplied.]
ShouldPersistBindings (inherited from RichControl) [To be supplied.]
ShouldPersistCursor (inherited from RichControl) Returns true if the cursor should be persisted in code gen.
ShouldPersistFont (inherited from RichControl) Returns true if the font should be persisted in code gen.
ShouldPersistForeColor [To be supplied.]
ShouldPersistItemHeight Indicates whether the itemHeight property should be persisted.
ShouldPersistLocation (inherited from Control) Determines if the Location property needs to be persisted.
ShouldPersistRightToLeft (inherited from RichControl) Returns true if the RightToLeft should be persisted in code gen.
ShouldPersistSize (inherited from Control) Determines if the Size property needs to be persisted.
ShouldPersistText Determines if the Text property needs to be persisted.
Show (inherited from Control) Makes the control display by setting the visible property to true
SuspendLayout (inherited from Control) Suspends the layout logic for the control.
ToString (inherited from ListControl) [To be supplied.]
Update (inherited from Control) Forces the control to paint any currently invalid areas.

Events

Click (inherited from Control) [To be supplied.]
ControlAdded (inherited from Control) [To be supplied.]
ControlRemoved (inherited from Control) [To be supplied.]
CreateHandle (inherited from Control) [To be supplied.]
DestroyHandle (inherited from Control) [To be supplied.]
DoubleClick [To be supplied.]
DragDrop (inherited from RichControl) [To be supplied.]
DragEnter (inherited from RichControl) [To be supplied.]
DragLeave (inherited from RichControl) [To be supplied.]
DragOver (inherited from RichControl) [To be supplied.]
DrawItem [To be supplied.]
DropDown [To be supplied.]
Enter (inherited from Control) [To be supplied.]
GiveFeedback (inherited from RichControl) [To be supplied.]
GotFocus (inherited from Control) [To be supplied.]
Help (inherited from RichControl) [To be supplied.]
Invalidate (inherited from RichControl) [To be supplied.]
KeyDown (inherited from Control) [To be supplied.]
KeyPress (inherited from Control) [To be supplied.]
KeyUp (inherited from Control) [To be supplied.]
Layout (inherited from Control) [To be supplied.]
Leave (inherited from Control) [To be supplied.]
LostFocus (inherited from Control) [To be supplied.]
MeasureItem [To be supplied.]
MouseDown (inherited from Control) [To be supplied.]
MouseEnter (inherited from Control) [To be supplied.]
MouseHover (inherited from Control) [To be supplied.]
MouseLeave (inherited from Control) [To be supplied.]
MouseMove (inherited from Control) [To be supplied.]
MouseUp (inherited from Control) [To be supplied.]
MouseWheel (inherited from Control) [To be supplied.]
Move (inherited from Control) [To be supplied.]
Paint (inherited from RichControl) [To be supplied.]
PropertyChanged (inherited from Control) [To be supplied.]
QueryContinueDrag (inherited from RichControl) [To be supplied.]
Resize (inherited from Control) [To be supplied.]
SelectedIndexChanged [To be supplied.]
SelectionChangeCommitted [To be supplied.]
TextChanged [To be supplied.]
Validated (inherited from Control) [To be supplied.]
Validating (inherited from Control) [To be supplied.]

Protected:

Properties

CreateParams (inherited from ListControl) [To be supplied.]
CreateThreadId (inherited from Control) Retrieves the Win32 thread ID of the thread that created the handle for this control. If the control's handle hasn't been created yet, this method will return the current thread's ID.
FontHeight (inherited from RichControl) [To be supplied.]
InternalHandle (inherited from Control) Returns the current value of the handle. This may be zero if the handle has not been created.
ParkingFormHandle (inherited from RichControl) [To be supplied.]
RenderRightToLeft (inherited from RichControl) [To be supplied.]
RichParent (inherited from RichControl) [To be supplied.]
WindowText (inherited from Control) The current text of the Window; if the window has not yet been created, stores it in the control. If the window has been created, stores the text in the underlying win32 control. This property should be used whenever you want to get at the win32 control's text. For all other cases, use the Text property- but note that this is overridable, and any of your code that uses it will use the overridden version in controls that subclass your own.

Methods

AddEventHandler (inherited from Control) [To be supplied.]
AddItemsCore Performs the work of adding the specified items to the combobox
AssignParent (inherited from RichControl) Assigns a new parent control. Sends out the appropriate property change notifications for properties that are affected by the change of parent.
ChildGotFocus (inherited from Control) [To be supplied.]
CreateAccessibilityInstance (inherited from RichControl) Constructs the new instance of the accessibility object for this control. Subclasses should not call base.CreateAccessibilityObject.
CreateControlsInstance (inherited from RichControl) Constructs the new instance of the Controls collection objects. Subclasses should not call base.CreateControlsInstance.
CreateHandle (inherited from Control) Creates a handle for this control. This method is called by the framework, this should not be called. Inheriting classes should always call base.createHandle when overriding this method.
DefWndProc (inherited from Control) Sends the message to the default window proc.
DestroyHandle (inherited from RichControl) [To be supplied.]
FilterItemOnProperty (inherited from ListControl) Overloaded. [To be supplied.]
Finalize (inherited from ListControl) [To be supplied.]
FormatFormatChanged Called to notify the control that the Formatting object has changed.
GetEventHandler (inherited from RichControl) RichControl overrides the default implementation of this for AX sourcing. ActiveX controls can "freeze" their events, and we implement this by returning null here if events are frozen.
GetFormatMode (inherited from FormatControl) The FOrmatControl uses edit mode if the control is being edited, display mode if it's pure display.
GetFormatText (inherited from FormatControl) This returns the text for the given value based on the current FormatMode.
GetStyle (inherited from Control) Retrieves the current value of the specified bit in the control's style. NOTE: This is control style, not the Win32 style of the hwnd.
InitLayout (inherited from RichControl) Called after the control has been added to another container.
InvokeGotFocus (inherited from Control) [To be supplied.]
InvokeLostFocus (inherited from Control) [To be supplied.]
InvokeOnClick (inherited from Control) [To be supplied.]
InvokePaint (inherited from RichControl) [To be supplied.]
InvokePaintBackground (inherited from RichControl) [To be supplied.]
IsInputChar (inherited from Control) Determines if charCode is an input character that the control wants. This method is called during window message pre-processing to determine whether the given input character should be pre-processed or sent directly to the control. If isInputChar returns true, the given character is sent directly to the control. If isInputChar returns false, the character is pre-processed and only sent to the control if it is not consumed by the pre-processing phase. The pre-processing of a character includes checking whether the character is a mnemonic of another control.
IsInputKey (inherited from ListControl) [To be supplied.]
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
NotifyInvalidate (inherited from RichControl) [To be supplied.]
OnClick (inherited from Control) This method actually raises the Click event. Inheriting classes should override this if they wish to be notified of a Click event. (This is far preferable to actually adding an event handler.) They should not, however, forget to call base.onClick(e); before exiting, to ensure that other recipients do actually get the event.
OnControlAdded (inherited from Control) Called when a child control is added to this control.
OnControlRemoved (inherited from Control) Called when a child control is removed from this control.
OnCreateControl (inherited from Control) Called when the control is first created.
OnCreateHandle (inherited from ListControl) [To be supplied.]
OnDestroyHandle (inherited from ListControl) [To be supplied.]
OnDoubleClick (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onDoubleClick to send this event to any registered event listeners.
OnDragDrop (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onDragDrop to send this event to any registered event listeners.
OnDragEnter (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onDragEnter to send this event to any registered event listeners.
OnDragLeave (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onDragLeave to send this event to any registered event listeners.
OnDragOver (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onDragOver to send this event to any registered event listeners.
OnDrawItem This is the code that actually fires the drawItem event. Don't forget to call base.onDrawItem() to ensure that drawItem events are correctly fired at all other times.
OnDropDown This is the code that actually fires the dropDown event. Don't forget to call base.onDropDown() to ensure that dropDown events are correctly fired at all other times.
OnEnter (inherited from FormatControl) The FOrmatControl updates the text based on the EditFormat of the Format object when the control is entered.
OnGiveFeedback (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onGiveFeedback to send this event to any registered event listeners.
OnGotFocus (inherited from RichControl) [To be supplied.]
OnHelp (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onHelp to send this event to any registered event listeners.
OnInvalidate (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.OnInvalidate to send this event to any registered event listeners.
OnKeyDown (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onKeyDown to send this event to any registered event listeners.
OnKeyPress (inherited from ListControl) [To be supplied.]
OnKeyUp (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onKeyUp to send this event to any registered event listeners.
OnLayout (inherited from RichControl) Core layout logic. Inheriting controls should override this function to do any custom layout logic. It is not neccessary to call base.layoutCore, however for normal docking and anchoring functions to work, base.layoutCore must be called.
OnLeave (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onLeave to send this event to any registered event listeners.
OnLostFocus (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onLostFocus to send this event to any registered event listeners.
OnMeasureItem This is the code that actually fires the measuereItem event. Don't forget to call base.onMeasureItem() to ensure that measureItem events are correctly fired at all other times.
OnMouseDown (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseDown to send this event to any registered event listeners.
OnMouseEnter (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseEnter to send this event to any registered event listeners.
OnMouseHover (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseHover to send this event to any registered event listeners.
OnMouseLeave (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseLeave to send this event to any registered event listeners.
OnMouseMove (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseMove to send this event to any registered event listeners.
OnMouseUp (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseUp to send this event to any registered event listeners.
OnMouseWheel (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseWheel to send this event to any registered event listeners.
OnMove (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMove to send this event to any registered event listeners.
OnPaint (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onPaint to send this event to any registered event listeners.
OnPaintBackground (inherited from RichControl) Inheriting classes should override this method to handle the erase background request from windows. It is not necessary to call base.onPaintBackground, however if you do not want the default Windows behavior you must set event.handled to true.
OnParentPropertyChanged This method is called by the parent control when any property changes on the parent. This can be overriden by inheriting classes, however they must call base.OnParentPropertyChanged.
OnPropertyChanged (inherited from ListControl) [To be supplied.]
OnQueryContinueDrag (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onQueryContinueDrag to send this event to any registered event listeners.
OnResize (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onResize to send this event to any registered event listeners.
OnSelectedIndexChanged This is the code that actually fires the selectedIndexChanged event. Don't forget to call base.onSelectedIndexChanged() to ensure that selectedIndexChanged events are correctly fired at all other times.
OnSelectionChangeCommitted This is the code that actually fires the SelectionChangeCommitted event. Don't forget to call base.OnSelectionChangeCommitted() to ensure that SelectionChangeCommitted events are correctly fired at all other times.
OnTextChanged Fires the event indicating that the text property has been changed. Inheriting controls should use this in favour of actually listening to the event, but should not forget to call base.onTextChanged() to ensure that the event is still fired for external listeners.
OnValidated (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onResize to send this event to any registered event listeners.
OnValidating (inherited from FormatControl) The FOrmatControl validates the edited text and pushes the resultant object into the Value property. If the text is invalid, an exception is thrown and the focus returns to this control.
ParentChanged (inherited from Control) Called by the framework after a control's parent changes. This allows (for example) child controls to automatically hook events on their parent, giving better encapsulation.
ProcessCmdKey (inherited from RichControl) [To be supplied.]
ProcessDialogChar (inherited from Control) Processes a dialog character. This method is called during message pre-processing to handle dialog characters, such as control mnemonics. This method is called only if the isInputChar() method indicates that the control isn't interested in the character. processDialogChar() simply sends the character to the parent's processDialogChar() method, or returns false if the control has no parent. The Form class overrides this method to perform actual processing of dialog characters. When overriding processDialogChar(), a control should return true to indicate that it has processed the character. For characters that aren't processed by the control, the result of "base.processDialogChar()" should be returned. Controls will seldom, if ever, need to override this method.
ProcessDialogKey (inherited from Control) Processes a dialog key. This method is called during message pre-processing to handle dialog characters, such as TAB, RETURN, ESCAPE, and arrow keys. This method is called only if the isInputKey() method indicates that the control isn't interested in the key. processDialogKey() simply sends the character to the parent's processDialogKey() method, or returns false if the control has no parent. The Form class overrides this method to perform actual processing of dialog keys. When overriding processDialogKey(), a control should return true to indicate that it has processed the key. For keys that aren't processed by the control, the result of "base.processDialogChar()" should be returned. Controls will seldom, if ever, need to override this method.
ProcessKeyEventArgs (inherited from Control) Processes a key message. This method is called when a control receives a keyboard message. The method is responsible for generating the appropriate key events for the message by calling OnKeyPress(), onKeyDown(), or onKeyUp(). The m parameter contains the window message that must be processed. Possible values for the m.msg field are WM_CHAR, WM_KEYDOWN, WM_SYSKEYDOWN, WM_KEYUP, WM_SYSKEYUP, and WM_IMECHAR. When overriding processKeyEventArgs(), a control should return true to indicate that it has processed the key. For keys that aren't processed by the control, the result of "base.processKeyEventArgs()" should be returned. Controls will seldom, if ever, need to override this method.
ProcessKeyPreview (inherited from Control) Previews a keyboard message. This method is called by a child control when the child control receives a keyboard message. The child control calls this method before generating any keyboard events for the message. If this method returns true, the child control considers the message consumed and does not generate any keyboard events. The m parameter contains the window message to preview. Possible values for the m.msg field are WM_CHAR, WM_KEYDOWN, WM_SYSKEYDOWN, WM_KEYUP, and WM_SYSKEYUP. processKeyPreview() simply sends the character to the parent's processKeyPreview() method, or returns false if the control has no parent. The Form class overrides this method to perform actual processing of dialog keys. When overriding processKeyPreview(), a control should return true to indicate that it has processed the key. For keys that aren't processed by the control, the result of "base.processKeyEventArgs()" should be returned.
ProcessMnemonic (inherited from Control) Processes a mnemonic character. This method is called to give a control the opportunity to process a mnemonic character. The method should check if the control is in a state to process mnemonics and if the given character represents a mnemonic. If so, the method should perform the action associated with the mnemonic and return true. If not, the method should return false. Implementations of this method often use the isMnemonic() method to check if the given character matches a mnemonic in the control's text, for example:
if (canSelect() && isMnemonic(charCode, getText()) {
    // perform action associated with mnemonic
    }

This default implementation of processMnemonic() simply returns false to indicate that the control has no mnemonic.

RaiseDragEventArgs (inherited from RichControl) Raises the event associated with key with the event data of e and a sender of this control.
RaiseEvent (inherited from Control) [To be supplied.]
RaiseKeyEventArgs (inherited from Control) Raises the event associated with key with the event data of e and a sender of this control.
RaiseMouseEventArgs (inherited from Control) Raises the event associated with key with the event data of e and a sender of this control.
RaisePaintEventArgs (inherited from RichControl) Raises the event associated with key with the event data of e and a sender of this control.
RaisePropertyChangedEvent (inherited from Control) Raises the property changed event. This creates the needed event data and then calls OnPropertyChanged.
RecreateHandle (inherited from Control) Forces the recreation of the handle for this control. Inheriting controls must call base.recreateHandle.
RefreshItem (inherited from ListControl) [To be supplied.]
RemoveEventHandler (inherited from Control) [To be supplied.]
RemoveEventHandlers (inherited from Control) [To be supplied.]
ResetMouseEventArgs (inherited from Control) Resets the mouse leave listeners.
ResumeLayout (inherited from Control) Overloaded. [To be supplied.]
RTLTranslateAlignment (inherited from RichControl) Overloaded. [To be supplied.]
RTLTranslateContent (inherited from RichControl) [To be supplied.]
RTLTranslateHorizontal (inherited from RichControl) [To be supplied.]
RTLTranslateLeftRight (inherited from RichControl) [To be supplied.]
ScaleCore (inherited from Control) Performs the work of scaling the entire control and any child controls.
SendMessage (inherited from Control) Overloaded. [To be supplied.]
SetBoundsCore Performs the work of setting the bounds of this control. Inheriting classes can overide this function to add size restrictions. Inheriting classes must call base.setBoundsCore to actually cause the bounds of the control to change.
SetClientSizeCore (inherited from Control) Performs the work of setting the size of the client area of the control.
SetItemsCore Performs the work of setting the specified items to the combobox
SetStyle (inherited from Control) Sets the current value of the specified bit in the control's style. NOTE: This is control style, not the Win32 style of the hwnd.
UpdateBounds (inherited from Control) Overloaded. [To be supplied.]
UpdateStyles (inherited from Control) Forces styles to be reapplied to the handle. This function will call CreateParams to get the styles to apply.
UpdateZOrder (inherited from Control) Updates this control in it's parent's zorder.
WmSysColorChange (inherited from Control) Handles the WM_SYSCOLORCHANGE message
WndProc (inherited from ListControl) [To be supplied.]
WndProcException (inherited from RichControl) [To be supplied.]

Event Hookup:

Methods

AddOnClick (inherited from Control) Adds an event handler for the click event. The click event occurs when the user clicks in the client area of the control.
AddOnControlAdded (inherited from Control) Adds an event handler for the ControlAdded event. This event is raised after a control is added as a child to this control.
AddOnControlRemoved (inherited from Control) Adds an event handler for the ControlRemoved event. This event is raised after a child control is removed from this control.
AddOnCreateHandle (inherited from Control) Adds an event handler for the createHandle event. The createHandle event occurs immediately after the control's handle is created.
AddOnDestroyHandle (inherited from Control) Adds an event handler for the destroyHandle event. The destroyHandle event occurs immediately before the control's handle is destroyed.
AddOnDoubleClick Adds an event handler for the doubleClick event notification. This event is sent when the user double-clicks a string in the list box of a combo box. This only occurs for a combo box with the Style property set to ComboBoxStyle.Simple.
AddOnDragDrop (inherited from RichControl) Adds an event handler for the dragDrop event. The dragDrop evnet occurs when the user releases the mouse button while dragging some Object over the control.
AddOnDragEnter (inherited from RichControl) Adds an event handler for the dragEnter event. The drawEnter event occurs when the user first moves the mouse over the control while dragging some Object.
AddOnDragLeave (inherited from RichControl) Adds an event handler for the dragLeave event. The dragLeave event occurs when the user first moves the mouse out of the control while dragging some Object.
AddOnDragOver (inherited from RichControl) Adds an event handler for the dragOver event. The dragOver event occurs whenever the user moves the mouse over the control while draggin some Object.
AddOnDrawItem Adds an event handler for the drawItem event notification. This event is called for list boxes whose drawMode property is set to DrawMode.OWNERDRAWFIXED or DrawMode.OWNERDRAWVARIABLE, and contains a Graphics object in which people should paint the item. Duplicates adds are not filtered out.
AddOnDropDown Adds an event handler for the dropDown event notification. This event is sent whenever the dropdown portion of the combo is dropped down. Duplicates are not filtered out.
AddOnEnter (inherited from Control) Adds an event handler for the enter event. The enter event occurs when focus enters this control. This doesn't imply that this control has focus, but rather that this control or some child control of this control has gotten focus.
AddOnGiveFeedback (inherited from RichControl) Adds an event handler for the giveFeedback event. The giveFeedback event occurs during a drag operation. This allows the source of a drag event to modify the mouse pointer to give the user visual feedback as to what would happen if they droped.
AddOnGotFocus (inherited from Control) Adds an event handler for the gotFocus event. The gotFocus event occurs when the this control gains focus.
AddOnHelp (inherited from RichControl) Adds an event handler for the help event. The help event occurs when the user requests help for this control. This may be caused by the user pressing F1, or used "Whats This Help".
AddOnInvalidate (inherited from RichControl) Adds an event handler for the invalidate event. The invalidate event occurs when the Invalidate method is called on some part of the control's client area. This event may be used to identify when the contents of a window have changed.
AddOnKeyDown (inherited from Control) Adds an event handler for the keyDown event. The keyDown event occurs when the user presses a key down.
AddOnKeyPress (inherited from Control) Adds an event handler for the keyPress event. The keyPress event occurs when the user presses a key.
AddOnKeyUp (inherited from Control) Adds an event handler for the keyUp event. The keyUp event occurs when the user releases a key.
AddOnLayout (inherited from Control) Adds an event handler for the layout event. The layout event occurs when any event occurs that would cause the control to layout child controls. These events include; resize, show/hide child controls, add/remove child controls. This event should be used to perform any custom layout logic.
AddOnLeave (inherited from Control) Adds an event handler for the leave event. The leave event occurs when focus leaves this control. This doesn't imply that this control lost focus, but rather that focus has been moved out of this control and any child controls.
AddOnLostFocus (inherited from Control) Adds an event handler for the lostFocus event. The lostFocus event occurs when this control looses focus.
AddOnMeasureItem Adds an event handler for the measureItem event notification. This event is called for combo boxes whose drawMode property is set to DrawMode.OwnerDrawVariable, and asks the programmer for the size of the given item in the combo box.
AddOnMouseDown (inherited from Control) Adds an event handler for the mouseDown event. The mouseDown event occurs when the user presses the mouseDown over this control.
AddOnMouseEnter (inherited from Control) Adds an event handler for the mouseEnter event. The mouseEnter event occurs when the mouse first moves over this control.
AddOnMouseHover (inherited from Control) Adds an event handler for the mouseHover event. The mouseHover event occurs after the mouse is inside a control for an amount.
AddOnMouseLeave (inherited from Control) Adds an event handler for the mouseLeave event. The mouseLeave event occurs when the mouse first moves out of this control.
AddOnMouseMove (inherited from Control) Adds an event handler for the mouseMove event. The mouseMove event occurs whenever the user moves the mouse over this control.
AddOnMouseUp (inherited from Control) Adds an event handler for the mouseUp event. The mouseUp event occurs when the user releases a mouse button inside the control.
AddOnMouseWheel (inherited from Control) Adds an event handler for the mouseWheel event. The mouseWheel event occurs when the user scrolls the mouse wheel up or down. The delta value in the event data indicates the amount that the mouse wheel has moved. The Microsoft standards indicate that the view should scroll by System.WinForms.SystemInformation.getMouseWheelScrollLines() when the delta value has reach win.WHEEL_DELTA. If a mouseWheel event occurs with a value less that WHEEL_DELTA, the control should either increment a stored value and wait until the total delta is an increment of WHEEL_DELTA, or scroll the view a percentage of MouseWheelScrollLines. NOTE: A press of the mouseWheel will generate a mouseDown event with the middle button pressed.
AddOnMove (inherited from Control) Adds an event handler for the move event. The move event occurs when the controls location changes.
AddOnPaint (inherited from RichControl) Adds an event handler for the paint event. The paint event occurs when the control needs to paint some part of it's client area.
AddOnPropertyChanged (inherited from Control) Adds an event handler for the property changed event. This event occurs when any property on the control has been changed for any reason.
AddOnQueryContinueDrag (inherited from RichControl) Adds an event handler for the queryContinueDrag event. The queryContinueDrag event occurs during a drag operation. This allows the drag source to determine if the drag operation should be canceled.
AddOnResize (inherited from Control) Adds an event handler for the resize event. The resize event occurs when the bounds of the control change. This event may be fired from the constructor of base controls.
AddOnSelectedIndexChanged Adds an event handler for the selectedIndexChanged event notification. This event is sent whenever the selection changes. Duplicates are not filtered out.
AddOnSelectionChangeCommitted Adds an event handler for the selection change committed notification. This event is raised whenever a new value from the dropdown is chosen and the dropdown is closed, or the user uses the arrow keys to cycle through the values without using the dropdown.
AddOnTextChanged Adds an event handler for the textChanged event notification. This event is fired whenever the text value for the text portion of the control changes. Duplicates adds are not filtered out.
AddOnValidated (inherited from Control) Adds an event handler for the validated event. The validated event occurs when a control was successfully validated.
AddOnValidating (inherited from Control) Adds an event handler for the validating event. The validating event occurs when the control loses focus and a control that causes validation gains focus. This is where users can write code to validate the current values of the control.
RemoveOnClick (inherited from Control) Removes the given handler for the "OnClick" event. If there are duplicate entries, ALL are removed.
RemoveOnControlAdded (inherited from Control) Removes the given handler for the "ControlAdded" event. If there are duplicate entries, ALL are removed.
RemoveOnControlRemoved (inherited from Control) Removes the given handler for the "ControlRemoved" event. If there are duplicate entries, ALL are removed.
RemoveOnCreateHandle (inherited from Control) Removes the given handler for the "createHandle" event. If there are duplicate entries, ALL are removed.
RemoveOnDestroyHandle (inherited from Control) Removes the given handler for the "destroyHandle" event. If there are duplicate entries, ALL are removed.
RemoveOnDoubleClick (inherited from Control) Removes the given handler for the "OnDoubleClick" event. If there are duplicate entries, ALL are removed.
RemoveOnDragDrop (inherited from RichControl) Removes the given handler for the "dragDrop" event. If there are duplicate entries, ALL are removed.
RemoveOnDragEnter (inherited from RichControl) Removes the given handler for the "OnDragEnter" event. If there are duplicate entries, ALL are removed.
RemoveOnDragLeave (inherited from RichControl) Removes the given handler for the "OnDragLeave" event. If there are duplicate entries, ALL are removed.
RemoveOnDragOver (inherited from RichControl) f final Removes the given handler for the "OnDragOver" event. If there are duplicate entries, ALL are removed.
RemoveOnDrawItem Removes the given handler for the "drawItem" event. If there are duplicate entries, ALL are removed.
RemoveOnDropDown Removes the given handler for the "dropDown" event. If there are duplicate entries, ALL are removed.
RemoveOnEnter (inherited from Control) Removes the given handler for the "OnEnter" event. If there are dfinal uplicate entries, ALL are removed.
RemoveOnGiveFeedback (inherited from RichControl) Removes the given handler for the "OnGiveFeedback" event. If there are duplicate entries, ALL are removed.
RemoveOnGotFocus (inherited from Control) Removes the given handler for the "OnGotFocus" event. If there are duplicate entries, ALL are removed.
RemoveOnHelp (inherited from RichControl) Removes the given handler for the "OnHelp" event. If there are duplicate entries, ALL are removed.
RemoveOnInvalidate (inherited from RichControl) Removes the given handler for the "OnInvalidate" event. If there are duplicate entries, ALL are removed.
RemoveOnKeyDown (inherited from Control) Removes the given handler for the "OnKeyDown" event. If there are duplicate entries, ALL are removed.
RemoveOnKeyPress (inherited from Control) Removes the given handler for the "OnKeyPress" event. If there are duplicate entries, ALL are removed.
RemoveOnKeyUp (inherited from Control) Removes the given handler for the "OnKeyUp" event. If there are duplicate entries, ALL are removed.
RemoveOnLayout (inherited from Control) Removes the given handler for the layout event. If there are duplicate entries, ALL are removed.
RemoveOnLeave (inherited from Control) Removes the given handler for the "OnLeave" event. If there are duplicate entries, ALL are removed.
RemoveOnLostFocus (inherited from Control) Removes the given handler for the "OnLostFocus" event. If there are duplicate entries, ALL are removed.
RemoveOnMeasureItem Removes the given handler for the "measureItem" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseDown (inherited from Control) Removes the given handler for the "OnMouseDown" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseEnter (inherited from Control) Removes the given handler for the "OnMouseEnter" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseHover (inherited from Control) Removes the given handler for the "OnMouseHover" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseLeave (inherited from Control) Removes the given handler for the "OnMouseLeave" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseMove (inherited from Control) Removes the given handler for the "OnMouseMove" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseUp (inherited from Control) Removes the given handler for the "OnMouseUp" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseWheel (inherited from Control) Removes the given handler for the "OnMouseWheel" event. If there are duplicate entries, ALL are removed.
RemoveOnMove (inherited from Control) Removes the given handler for the "OnMove" event. If there are duplicate entries, ALL are removed.
RemoveOnPaint (inherited from RichControl) Removes the given handler for the "OnPaint" event. If there are duplicate entries, ALL are removed.
RemoveOnPropertyChanged (inherited from Control) Removes an event handler for the property changed event. This event occurs when any property on the control has been changed for any reason.
RemoveOnQueryContinueDrag (inherited from RichControl) Removes the given handler for the "OnQueryContinueDrag" event. If there are duplicate entries, ALL are removed.
RemoveOnResize (inherited from Control) Removes the given handler for the "OnResize" event. If there are duplicate entries, ALL are removed.
RemoveOnSelectedIndexChanged Removes the given handler for the "selectedIndexChanged" event. If there are duplicate entries, ALL are removed.
RemoveOnSelectionChangeCommitted Removes an event handler for the selection change committed notification. This event is raised whenever a new value from the dropdown is chosen and the dropdown is closed, or the user uses the arrow keys to cycle through the values without using the dropdown.
RemoveOnTextChanged Removes the given handler for the "textChanged" event. If there are duplicate entries, ALL are removed.
RemoveOnValidated (inherited from Control) Removes an event handler for the validated event. The validated event occurs when a control was successfully validated.
RemoveOnValidating (inherited from Control) Removes an event handler for the validating event. The validating event occurs when the control loses focus and a control that causes validation gains focus. This is where users can write code to validate the current values of the control.

See Also

ComboBox Class | System.WinForms Namespace