answersLogoWhite

0


Best Answer

Example:

MsgBox("This is an example!", MsgBoxStyle.Information, "Example")

or:

MsgBox("This is an example!", MsgBoxStyle.Exclamation, "Example")

or:

MsgBox("This is an example!", MsgBoxStyle.Critical, "Example")

you can choose between one of these three styles.

just add one of these in the line where you want it to be displayed like:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

MsgBox("This is an example!", MsgBoxStyle.Information, "Example")

End Sub

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Double click on the button

Type...

Msgbox("Your Message")

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a pop-up messagebox by pressing a button in visual basic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the use of MSGBOX in Visual Basic?

MessageBox is a way to show a message when the user does a specific thing. There is two ways to do it, you can use: MsgBox("text", MsgBoxStyle.whatever, "title) or MessageBox.Show("text", "title")


What is button in visual basic?

ez beb et b


What is option button in visual basic?

ez beb et b


How do you create a save button to save a dataset into a database in Visual Basic?

i love pie


What is the meaning of control in visual basic?

It is user interface Ex Button, Checkbox, Label


What is visual basic control?

Visual Basic Controls work on Visual Studio for Visual Basic and Applications that made by Visual Basic.


How can you make an URL button at visual basic 6?

http://www.swapitshop.com/friend_jump?user_id=1759213&creative_id=17


The year of invention of visual basic?

Visual Basic was started in 1991.


Who invented the visual basic?

Visual Basic was created by a team at Microsoft.


Who developed visual basic?

Microsoft is the developer of visual basic


What is the difference between visual basic and visual c?

The programming language: Visual Basic is a BASIC-like (or BASIC-derived) language, Visual C is... well C.


Who is the developer of Visual Basic?

Microsoft is the developer of Visual Basic.