VB.NET - TextBox control properties

TextBox control properties in VB.NET

Following are some of the commonly used properties for TextBox control:

1.AcceptsReturn
It gets or sets a value by 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.

2.AutoCompleteCustomSource
It gets or sets a custom System.Collections.Specialized.StringCollection to use when the AutoCompleteSourceproperty is set to CustomSource.

3.AutoCompleteMode
It gets or sets an option that controls how automatic completion works for the TextBox.

4.AutoCompleteSource
It gets or sets a value specifying the source of complete strings used for automatic completion.

5.CharacterCasing
It gets or sets whether the TextBox control modifies the case of characters as they are typed.

6.Font
It gets or sets the font of the text displayed by the control.

7.FontHeight
It gets or sets the height of the font of the control.

8.ForeColor
It gets or sets the foreground color of the control.

9.Lines
It gets or sets the lines of text in a text box control.

10.Multiline
It gets or sets a value indicating whether this is a multiline TextBox control.

11.PasswordChar
It gets or sets the character used to mask characters of a password in a single-line TextBox control.

12.ReadOnly
It gets or sets a value indicating whether text in the text box is read-only.

13.ScrollBars
It gets or sets which scroll bars should appear in a multiline TextBox control. It has values such as:

- None
- Horizontal
- Vertical
- Both

14.TabIndex
It gets or sets the tab order of the control within its container.

15.Text
It gets or sets the current text in the TextBox.

16.TextAlign
It gets or sets how text is aligned in a TextBox control. It has values such as:

- Left
- Right
- Center

17.TextLength
It gets the length of text in the control.

18.WordWrap
It indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.
VB.NET - Keyboard events
Keyboard events - Keyboard events allow you to validate keystrokes........
VB.NET - What are the major components of .NET framework?
What are the major components of .NET framework? - Common Language Runtime: It helps in application execution, allocation and reclamation of memory.......
VB.NET - Define reference type and value type
Define reference type and value type - A value type holds the data assigned to it.......
Post your comment