
Gets a value indicating whether the user can undo the previous operation in a text box control. Gets a value indicating whether the control can be selected. Gets a value indicating whether the control can receive focus.ĭetermines if events can be raised on the control. Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support. Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. Gets the distance, in pixels, between the top edge of the control and the top edge of its container's client area. Gets or sets the border type of the text box control. Gets or sets the BindingContext for the control. This property is not relevant for this class.

Gets or sets the background color of the control. Gets or sets a value indicating whether the height of the control automatically adjusts when the font assigned to the control is changed. Gets or sets where this control is scrolled to in ScrollControlIntoView(Control). Gets or sets a value specifying the source of complete strings used for automatic completion. Gets or sets an option that controls how automatic completion works for the TextBox. Gets or sets a custom StringCollection to use when the AutoCompleteSource property is set to CustomSource. Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. Gets or sets a value indicating whether the control can accept data that the user drags onto it. Gets or sets the accessible role of the control. Gets or sets the name of the control used by accessibility client applications. Gets or sets the description of the control used by accessibility client applications. Gets or sets the default action description of the control for use by accessibility client applications. Gets the AccessibleObject assigned to the control. Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order. Gets or sets a value indicating whether pressing ENTER in a multiline TextBox control creates a new line of text in the control or activates the default button for the form. Initializes a new instance of the TextBox class. Using the TextBox control with visual styles enabled will cause the incorrect handling of surrogate fonts. Most of the functionality of the TextBox control is inherited from the TextBoxBase class. You can also restrict all entry of data in a TextBox control by setting the ReadOnly property to true. To restrict text from being entered in a TextBox control, you can create an event handler for the KeyDown event in order to validate each character entered in the control. To select a range of text in the text box, you can use the Select method. To scroll the contents of the TextBox until the cursor (caret) is within the visible region of the control, you can use the ScrollToCaret method. Use the CharacterCasing property to enable the user to type only uppercase, only lowercase, or a combination of uppercase and lowercase characters into the TextBox control. You can use the PasswordChar property to mask characters entered in a single-line version of the control. TextBox controls can also be used to accept passwords and other sensitive information.

You can limit the amount of text entered into a TextBox control by setting the MaxLength property to a specific number of characters. You can adjust the height by setting the Size property. You must set the Multiline property to true to adjust the height of the TextBox control. Set the AcceptsTab and AcceptsReturn properties to true to enable greater text manipulation in a multiline TextBox control. You can use the Multiline and ScrollBars properties to enable multiple lines of text to be displayed or entered. Typically, a TextBox control is used to display, or accept as input, a single line of text.
WINDOWS TEXTBAR PASSWORD
This control has additional functionality that is not found in the standard Windows text box control, including multiline editing and password character masking. With the TextBox control, the user can enter text in an application. This.ClientSize = new (284, 264) Īpplication.SetCompatibleTextRenderingDefault(false) This example uses the AcceptsTab, AcceptsReturn, and Dock properties to make the multiline text box control useful for creating text documents.
WINDOWS TEXTBAR CODE
The following code example creates a multiline TextBox control with vertical scroll bars. ClassInterfaceAttribute ComVisibleAttribute Examples
