Some Uses of Functions in TextBox in Visual Basic .NET Part 2


1

This article is a continuation of 15 uses of Functions contained in TextBox with the Visual Basic.NET (VB.NET) programming language part 1.

The author provides some of the functions contained in the TextBox component with VB.Net in Microsoft Visual Studio part 1. This is where you can find out the usefulness of each function contained in the TextBox component which is very necessary for learning to create your own desktop-based application using Visual Basic. Net.

Coding for the use of the Function from VB.Net can only work when the desktop application program is running on a computer or laptop, whether it’s Debug, Run, or Publish.

A SET OF FUNCTIONS CONTAINED IN THE TEXTBOX

1. TextBox.Equals(“enter text”)

This function is used to provide a decision or condition on each using the words that have been defined in the TextBox.

2. TextBox.Visible = [true atau false]

This function is used to show or hide the TextBox component inside the Form. If the value is TRUE, it can display the TextBox component in the Form. Meanwhile, the value is FALSE, it can hide the TextBox component in the Form.

3. TextBox.Width = 200

This function is used to measure the length of the place where text is entered into the TextBox column. To fill in the long value of the TextBox column, you can use only numeric values.

4. TextBox.Height = 300

This function is used to measure the width of the place where text is entered into the TextBox column. To fill in the long value of the TextBox column, you can use only numeric values.

5. TextBox.Cursor = Cursor.[pilihlah tipe kursor]

This function is used to select the cursor type when focusing on the specified TextBox.

6. TextBox.FontColor = Color.[pilihlah jenis warna]

This function is used to give the text color to the specified TextBox column.

7. TextBox.BackColor = Color.[pilihlah jenis warna]

This function is used to assign a background color to the specified TextBox column.

8. TextBox.TabIndex = 1

This function is used to provide the Tab Index code when pressing the keyboard TAB key against the TextBox component. The smaller the Tab Index value, the earlier it enters the input text field when pressing the keyboard TAB key.

9. TextBox.RightToLeft = [0,1, atau 2]

This function is used to type text starting from right to left. For the value of RightToLeft which consists of 3 selected values, namely 0, 1, and 2. Each of these values ​​has its own meaning, namely.

0 = Windows.Forms.RightToLeft.No

1 = Windows.Forms.RightToLeft.Yes

2 = Windows.Forms.RightToLeft.Inherit

10. TextBox.CharacterCasing = [0,1, atau 2]

This function is used to convert or change the text data in the TextBox column to Capital letters, Uppercase letters, or Lowercase letters. For the value of CharacterCasing which consists of 3 selected values, namely 0, 1, and 2. Each of these values ​​has its own meaning, namely.

0 = CharacterCasing.Normal (convert text data to normal letters)

1 = CharacterCasing.Upper (convert text data to uppercase)

2 = CharacterCasing.Lower (convert text data to lowercase)

11. TextBox.BorderStyle = [0,1, atau 2]

This function is used to select the type of border style for the TextBox (input text). For the value of the BorderStyle which consists of 3 selected values, namely 0, 1, and 2. Each of these values ​​has its own meaning, namely.

0 = BorderStyle.None (no frame at all)

1 = BorderStyle.FixedSingle (chooses a solid border style)

2 = BorderStyle.Fixed3D (chooses a frame style whose texture is 3D)

12. TextBox.TabStop = [true atau false]

This function is used to activate or deactivate an event on the TextBox component when pressing the TAB key on the keyboard. If the value is TRUE, you can press the keyboard TAB key into the specified TextBox. Meanwhile, the value is FALSE, so it cannot press the keyboard TAB key into the specified TextBox or has disabled special events for pressing the TAB keyboard key in the TextBox.

CLOSING

You already know some of the functions or functions contained in the TextBox component, usually coding in making desktop-based applications using the Visual Basic.Net programming language.

Leave a comment

Your email address will not be published. Required fields are marked *