I am going to create new form and add Textbook control and Button control to it
Name TextBox as TextBoxMessage and Button as ButtonMessage
Then you double click on the Button to generate click event and write the following code
Private Sub ButtonMessage_Click(sender As Object, e As EventArgs) Handles ButtonMessage.Click MessageBox.Show("Message is: "+ TextBoxMessage.Text) End Sub
In line 2, I am passing message from TextBoxMessage
Now you can run the program and click on the Show Message button to see Message Box