Export (0) Print
Expand All

TextBoxBase Methods

The methods of the TextBoxBase class are listed here. For a complete list of TextBoxBase class members, see the TextBoxBase Members topic.

Public Methods

public methodAppendText Appends text to the current text of text box.
public methodBeginInvoke (inherited from Control) Overloaded. Executes a delegate asynchronously on the thread that the control's underlying handle was created on.
public methodBringToFront (inherited from Control)

Supported by the .NET Compact Framework.

Brings the control to the front of the z-order.
public methodClear Clears all text from the text box control.
public methodClearUndo Clears information about the most recent operation from the undo buffer of the text box.
public methodContains (inherited from Control) Retrieves a value indicating whether the specified control is a child of the control.
public methodCopy Copies the current selection in the text box to the Clipboard.
public methodCreateControl (inherited from Control) Forces the creation of the control, including the creation of the handle and any child controls.
public methodCreateGraphics (inherited from Control)

Supported by the .NET Compact Framework.

Creates the Graphics object for the control.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodCut Moves the current selection in the text box to the Clipboard.
public methodDispose (inherited from Component)

Supported by the .NET Compact Framework.

Overloaded. Releases the resources used by the Component.
public methodDoDragDrop (inherited from Control) Begins a drag-and-drop operation.
public methodEndInvoke (inherited from Control) Retrieves the return value of the asynchronous operation represented by the IAsyncResult object passed.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodFindForm (inherited from Control) Retrieves the form that the control is on.
public methodFocus (inherited from Control)

Supported by the .NET Compact Framework.

Sets input focus to the control.
public methodGetChildAtPoint (inherited from Control) Retrieves the child control that is located at the specified coordinates.
public methodGetContainerControl (inherited from Control) Returns the next ContainerControl up the control's chain of parent controls.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetNextControl (inherited from Control) Retrieves the next control forward or back in the tab order of child controls.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodHide (inherited from Control)

Supported by the .NET Compact Framework.

Conceals the control from the user.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodInvalidate (inherited from Control)

Supported by the .NET Compact Framework.

Overloaded. Invalidates a specific region of the control and causes a paint message to be sent to the control.
public methodInvoke (inherited from Control)

Supported by the .NET Compact Framework.

Overloaded. Executes a delegate on the thread that owns the control's underlying window handle.
public methodPaste Replaces the current selection in the text box with the contents of the Clipboard.
public methodPerformLayout (inherited from Control) Overloaded. Forces the control to apply layout logic to child controls.
public methodPointToClient (inherited from Control)

Supported by the .NET Compact Framework.

Computes the location of the specified screen point into client coordinates.
public methodPointToScreen (inherited from Control)

Supported by the .NET Compact Framework.

Computes the location of the specified client point into screen coordinates.
public methodPreProcessMessage (inherited from Control) Preprocesses input messages within the message loop before they are dispatched.
public methodRectangleToClient (inherited from Control)

Supported by the .NET Compact Framework.

Computes the size and location of the specified screen rectangle in client coordinates.
public methodRectangleToScreen (inherited from Control)

Supported by the .NET Compact Framework.

Computes the size and location of the specified client rectangle in screen coordinates.
public methodRefresh (inherited from Control)

Supported by the .NET Compact Framework.

Forces the control to invalidate its client area and immediately redraw itself and any child controls.
public methodResetBackColor (inherited from Control) Resets the BackColor property to its default value.
public methodResetBindings (inherited from Control) Resets the DataBindings property to its default value.
public methodResetCursor (inherited from Control) Resets the Cursor property to its default value.
public methodResetFont (inherited from Control) Resets the Font property to its default value.
public methodResetForeColor (inherited from Control) Resets the ForeColor property to its default value.
public methodResetImeMode (inherited from Control) Resets the ImeMode property to its default value.
public methodResetRightToLeft (inherited from Control) Resets the RightToLeft property to its default value.
public methodResetText (inherited from Control) Resets the Text property to its default value.
public methodResumeLayout (inherited from Control) Overloaded. Resumes normal layout logic.
public methodScale (inherited from Control) Overloaded. Scales the control and any child controls.
public methodScrollToCaret

Supported by the .NET Compact Framework.

Scrolls the contents of the control to the current caret position.
public methodSelect

Supported by the .NET Compact Framework.

Overloaded. Selects text within the control.
public methodSelectAll

Supported by the .NET Compact Framework.

Selects all text in the text box.
public methodSelectNextControl (inherited from Control) Activates the next control.
public methodSendToBack (inherited from Control)

Supported by the .NET Compact Framework.

Sends the control to the back of the z-order.
public methodSetBounds (inherited from Control) Overloaded. Sets the bounds of the control.
public methodShow (inherited from Control)

Supported by the .NET Compact Framework.

Displays the control to the user.
public methodSuspendLayout (inherited from Control) Temporarily suspends the layout logic for the control.
public methodToString

Supported by the .NET Compact Framework.

Overridden. See Object.ToString.
public methodUndo Undoes the last edit operation in the text box.
public methodUpdate (inherited from Control)

Supported by the .NET Compact Framework.

Causes the control to redraw the invalidated regions within its client area.

Protected Methods

protected methodAccessibilityNotifyClients (inherited from Control) Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control.
protected methodCreateAccessibilityInstance (inherited from Control) Creates a new accessibility object for the control.
protected methodCreateControlsInstance (inherited from Control) Creates a new instance of the control collection for the control.
protected methodCreateHandle Overridden. See Control.CreateHandle.
protected methodDefWndProc (inherited from Control) Sends the specified message to the default window procedure.
protected methodDestroyHandle (inherited from Control) Destroys the handle associated with the control.
protected methodDispose (inherited from Control)

Supported by the .NET Compact Framework.

Overloaded. Releases all resources used by the Control.
protected methodFinalize (inherited from Component)

Supported by the .NET Compact Framework.

Overridden. Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodGetService (inherited from Component) Returns an object that represents a service provided by the Component or by its Container.
protected methodGetStyle (inherited from Control) Retrieves the value of the specified control style bit for the control.
protected methodGetTopLevel (inherited from Control) Determines if the control is a top-level control.
protected methodInitLayout (inherited from Control) Called after the control has been added to another container.
protected methodInvokeGotFocus (inherited from Control) Raises the GotFocus event for the specified control.
protected methodInvokeLostFocus (inherited from Control) Raises the LostFocus event for the specified control.
protected methodInvokeOnClick (inherited from Control) Raises the Click event for the specified control.
protected methodInvokePaint (inherited from Control) Raises the Paint event for the specified control.
protected methodInvokePaintBackground (inherited from Control) Raises the PaintBackground event for the specified control.
protected methodIsInputChar (inherited from Control) Determines if a character is an input character that the control recognizes.
protected methodIsInputKey Overridden. See Control.IsInputKey.
protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.
protected methodOnAcceptsTabChanged Raises the AcceptsTabChanged event.
protected methodOnAutoSizeChanged Raises the AutoSizeChanged event.
protected methodOnBackColorChanged (inherited from Control) Raises the BackColorChanged event.
protected methodOnBackgroundImageChanged (inherited from Control) Raises the BackgroundImageChanged event.
protected methodOnBindingContextChanged (inherited from Control)

Supported by the .NET Compact Framework.

Raises the BindingContextChanged event.
protected methodOnBorderStyleChanged Raises the BorderStyleChanged event.
protected methodOnCausesValidationChanged (inherited from Control) Raises the CausesValidationChanged event.
protected methodOnChangeUICues (inherited from Control) Raises the ChangeUICues event.
protected methodOnClick (inherited from Control)

Supported by the .NET Compact Framework.

Raises the Click event.
protected methodOnContextMenuChanged (inherited from Control) Raises the ContextMenuChanged event.
protected methodOnControlAdded (inherited from Control) Raises the ControlAdded event.
protected methodOnControlRemoved (inherited from Control) Raises the ControlRemoved event.
protected methodOnCreateControl (inherited from Control) Raises the CreateControl event.
protected methodOnCursorChanged (inherited from Control) Raises the CursorChanged event.
protected methodOnDockChanged (inherited from Control) Raises the DockChanged event.
protected methodOnDoubleClick (inherited from Control) Raises the DoubleClick event.
protected methodOnDragDrop (inherited from Control) Raises the DragDrop event.
protected methodOnDragEnter (inherited from Control) Raises the DragEnter event.
protected methodOnDragLeave (inherited from Control) Raises the DragLeave event.
protected methodOnDragOver (inherited from Control) Raises the DragOver event.
protected methodOnEnabledChanged (inherited from Control)

Supported by the .NET Compact Framework.

Raises the EnabledChanged event.
protected methodOnEnter (inherited from Control) Raises the Enter event.
protected methodOnFontChanged Overridden. See Control.OnFontChanged.
protected methodOnForeColorChanged (inherited from Control) Raises the ForeColorChanged event.
protected methodOnGiveFeedback (inherited from Control) Raises the GiveFeedback event.
protected methodOnGotFocus (inherited from Control)

Supported by the .NET Compact Framework.

Raises the GotFocus event.
protected methodOnHandleCreated Overridden. See Control.OnHandleCreated.
protected methodOnHandleDestroyed Overridden. See Control.OnHandleDestroyed.
protected methodOnHelpRequested (inherited from Control) Raises the HelpRequested event.
protected methodOnHideSelectionChanged Raise the HideSelectionChanged event.
protected methodOnImeModeChanged (inherited from Control) Raises the ImeModeChanged event.
protected methodOnInvalidated (inherited from Control) Raises the Invalidated event.
protected methodOnKeyDown (inherited from Control)

Supported by the .NET Compact Framework.

Raises the KeyDown event.
protected methodOnKeyPress (inherited from Control)

Supported by the .NET Compact Framework.

Raises the KeyPress event.
protected methodOnKeyUp (inherited from Control)

Supported by the .NET Compact Framework.

Raises the KeyUp event.
protected methodOnLayout (inherited from Control) Raises the Layout event.
protected methodOnLeave (inherited from Control) Raises the Leave event.
protected methodOnLocationChanged (inherited from Control) Raises the LocationChanged event.
protected methodOnLostFocus (inherited from Control)

Supported by the .NET Compact Framework.

Raises the LostFocus event.
protected methodOnModifiedChanged Raises the ModifiedChanged event.
protected methodOnMouseDown (inherited from Control)

Supported by the .NET Compact Framework.

Raises the MouseDown event.
protected methodOnMouseEnter (inherited from Control) Raises the MouseEnter event.
protected methodOnMouseHover (inherited from Control) Raises the MouseHover event.
protected methodOnMouseLeave (inherited from Control) Raises the MouseLeave event.
protected methodOnMouseMove (inherited from Control)

Supported by the .NET Compact Framework.

Raises the MouseMove event.
protected methodOnMouseUp (inherited from Control)

Supported by the .NET Compact Framework.

Raises the MouseUp event.
protected methodOnMouseWheel (inherited from Control) Raises the MouseWheel event.
protected methodOnMove (inherited from Control) Raises the Move event.
protected methodOnMultilineChanged Raises the MultilineChanged event.
protected methodOnNotifyMessage (inherited from Control) Notifies the control of Windows messages.
protected methodOnPaint (inherited from Control)

Supported by the .NET Compact Framework.

Raises the Paint event.
protected methodOnPaintBackground (inherited from Control)

Supported by the .NET Compact Framework.

Paints the background of the control.
protected methodOnParentBackColorChanged (inherited from Control) Raises the BackColorChanged event when the BackColor property value of the control's container changes.
protected methodOnParentBackgroundImageChanged (inherited from Control) Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes.
protected methodOnParentBindingContextChanged (inherited from Control) Raises the BindingContextChanged event when the BindingContext property value of the control's container changes.
protected methodOnParentChanged (inherited from Control)

Supported by the .NET Compact Framework.

Raises the ParentChanged event.
protected methodOnParentEnabledChanged (inherited from Control) Raises the EnabledChanged event when the Enabled property value of the control's container changes.
protected methodOnParentFontChanged (inherited from Control) Raises the FontChanged event when the Font property value of the control's container changes.
protected methodOnParentForeColorChanged (inherited from Control) Raises the ForeColorChanged event when the ForeColor property value of the control's container changes.
protected methodOnParentRightToLeftChanged (inherited from Control) Raises the RightToLeftChanged event when the RightToLeft property value of the control's container changes.
protected methodOnParentVisibleChanged (inherited from Control) Raises the VisibleChanged event when the Visible property value of the control's container changes.
protected methodOnQueryContinueDrag (inherited from Control) Raises the QueryContinueDrag event.
protected methodOnReadOnlyChanged Raises the ReadOnlyChanged event.
protected methodOnResize (inherited from Control)

Supported by the .NET Compact Framework.

Raises the Resize event.
protected methodOnRightToLeftChanged (inherited from Control) Raises the RightToLeftChanged event.
protected methodOnSizeChanged (inherited from Control) Raises the SizeChanged event.
protected methodOnStyleChanged (inherited from Control) Raises the StyleChanged event.
protected methodOnSystemColorsChanged (inherited from Control) Raises the SystemColorsChanged event.
protected methodOnTabIndexChanged (inherited from Control) Raises the TabIndexChanged event.
protected methodOnTabStopChanged (inherited from Control) Raises the TabStopChanged event.
protected methodOnTextChanged (inherited from Control)

Supported by the .NET Compact Framework.

Raises the TextChanged event.
protected methodOnValidated (inherited from Control) Raises the Validated event.
protected methodOnValidating (inherited from Control) Raises the Validating event.
protected methodOnVisibleChanged (inherited from Control) Raises the VisibleChanged event.
protected methodProcessCmdKey (inherited from Control) Processes a command key.
protected methodProcessDialogChar (inherited from Control) Processes a dialog character.
protected methodProcessDialogKey Overridden. See Control.ProcessDialogKey.
protected methodProcessKeyEventArgs (inherited from Control) Processes a key message and generates the appropriate control events.
protected methodProcessKeyMessage (inherited from Control) Processes a keyboard message.
protected methodProcessKeyPreview (inherited from Control) Previews a keyboard message.
protected methodProcessMnemonic (inherited from Control) Processes a mnemonic character.
protected methodRecreateHandle (inherited from Control) Forces the re-creation of the handle for the control.
protected methodRtlTranslateAlignment (inherited from Control) Overloaded. Converts the current alignment to the appropriate alignment to support right-to-left text.
protected methodRtlTranslateContent (inherited from Control) Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.
protected methodRtlTranslateHorizontal (inherited from Control) Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.
protected methodRtlTranslateLeftRight (inherited from Control) Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text.
protected methodScaleCore (inherited from Control) Performs the work of scaling the entire control and any child controls.
protected methodSelect (inherited from Control) Overloaded. Activates a control.
protected methodSetBoundsCore Overridden. See Control.SetBoundsCore.
protected methodSetClientSizeCore (inherited from Control) Sets the size of the client area of the control.
protected methodSetStyle (inherited from Control) Sets the specified style bit to the specified value.
protected methodSetTopLevel (inherited from Control) Sets the control as the top-level control.
protected methodSetVisibleCore (inherited from Control) Sets the control to the specified visible state.
protected methodUpdateBounds (inherited from Control) Overloaded. Updates the bounds of the control.
protected methodUpdateStyles (inherited from Control) Forces the assigned styles to be reapplied to the control.
protected methodUpdateZOrder (inherited from Control) Updates the control in its parent's z-order.
protected methodWndProc Overridden. See Control.WndProc.

See Also

TextBoxBase Class | System.Windows.Forms Namespace

Show:
© 2014 Microsoft