Tip & How-To about Computers & Internet

How to use switch messagebox

Switch (MessageBox.Show("Your message here!!!",
"Title",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Question))
{
case DialogResult.Yes:

//--"Execute if you click Yes"--//
break;

case DialogResult.No:
//--"Execute if you click No"--//
break;

case DialogResult.Cancel:
//--"Execute if you click Cancel"--//
break;
}

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

1 Answer

how do i access mymessage box


INSTRUCTIONS:
Using My Personal MessageBox is very simple. Along with the program you'll find the file MYMESS.INI. This is where you'll define your messages. You can edit it with any text editor and your entries should be in the following format: [myitem]
title=My Title
message=This is my message. Unzip the contents of the zip file into a directory.

Apr 24, 2011 | Panasonic Lands Phones

1 Answer

sir how to set a messagebox in vb.net


To display a MessageBox:

MessageBox.Show("This is your messahe text!", "Title of Your MessageBox", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

Regarding connecting to an Oracle database, you'd have to search for the connection string.

Feb 15, 2009 | Keystone Active Server Pages (ASP)/Visual...

Not finding what you are looking for?

622 people viewed this tip

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...