Java, C++, Visual Basic-a programmer has to switch between many languages these days. So, how do you set the text in a text box again? Is there a SetText method? No, you use the Text property, like this:
Private Sub Button1_Click_1(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = "Hello from Visual Basic" End Sub
When the user clicks the command button Button1, the text "Hello from Visual Basic" appears in the text box. And you can recover text from a text box in the same way:
Private Sub Button1_Click_1(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim strText As String strText = TextBox1.Text End Sub