Drag 1 textbox and 1 button
Double click the button1 and you will be transferred to the Button1_Click event
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
End Sub
End Class
Type the name of the object that you want to target, in our case it is the textbox1. .Text is the property that we want to use if we want to put a text on it.
Property Textbox.Text, gets or sets the current text in the TextBox. Now, we have Textbox1.Text
We need to set the value of that Textbox1.Text so we will use the = sign. The value that we want to put in the Textbox1.Text is Hello World. Overall, this is the total code for putting a value of Hello World to the Textbox1.Text
TextBox1.Text = "Hello World"
Adding that code to the clicked event of button1
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
TextBox1.Text = "Hello World"
End Sub
End Class