Jump to content
xisto Community
Sign in to follow this  
Blackbelt012

Message Box (c#)

Recommended Posts

First add a button
Then double click on it

Add this code below for the simple version.

MessageBox.Show("Whatever you want the message to say");
Now to add a title to you message box do this.
MessageBox.Show("Whatever you want the message to say", "Your Title");
This adds a title to the message box.

This is very easy but if you need more help just lemme know.

Share this post


Link to post
Share on other sites

Okay yeah I could see someone who actually knows what C# is thinking that was easy, but I don't know, I've never done anything with C or C#, so I don't have a clue what it is. I don't have a clue on "double-click that button". What program? I need help.

Share this post


Link to post
Share on other sites

OK, so the program you use is Microsoft C# 2005 Express Edition. When you start a new project there is a place on the left side called "Toolbox" and there is something in there called "button". You drag and drop the button onto your application. Once you did that you double click on the button you just added. If you still need more help let me know.

Share this post


Link to post
Share on other sites

How do you make it so when somone clicks no the message pops up again.. I'm having trouble with that-reply by Snarf

Share this post


Link to post
Share on other sites
Replying to iGuestIf this follows the guidelines of C++ Use If(IDNO != NULL){ goto [put label here]; }That way when they click no it redirects it to the label you set up before the message box.-reply by Daidryk

Share this post


Link to post
Share on other sites

how to create a meesage box in web site

Message Box (c#)

 

How to create a message box using a website using c# code(Dot Net 2005)

Message box contains OK and CANCEL button's if press OK some code execute

If press CANCEL button some code executes

Please help for me its very urgent

How to show it in a web application

 

-reply by jimson

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.