Show Messages using MessageBox in Visual Basic .NET

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

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

Leave a Reply

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