C# Hello World Button to Visual MessageBox

In this example I used Visual Studio 2008 Pro.  (Any C# DOTNET editor/IDE will work)
Create a new C# Forms Application with a button then paste the follow code into the button click event:
—————————————

MessageBox.Show(”Hello World!”);

—————————————

If you want to add a var inside of the messagebox then do something like this:

string myVar1 = “John Doe”;
MessageBox.Show(”Hello ” + myVar1″);

Enjoy!

10 comments so far

Works for me! Nice and simple.

Alien540
July 28th, 2008 at 6:59 pm

……

Бизнесмен из Вас отличный…

Petya
April 6th, 2010 at 12:31 am

Hello! Please e-mail me your contacts. I have a question jack@infansport.ru” rel=”nofollow”>……

Thank you!…

Frankie
June 12th, 2010 at 8:20 am

moyhieh@jpkiidi.ru” rel=”nofollow”>1…

no more…

Dmitry
June 13th, 2010 at 8:52 pm

Добрый день! luke@grantmaro.ru” rel=”nofollow”>……

С уважением,…

Frankie
June 15th, 2010 at 1:03 pm

Добрый день! jose@tehnon.ru” rel=”nofollow”>……

с ув….

Kostya
June 19th, 2010 at 4:43 pm

Добрый вечер! mason@sportbul.ru” rel=”nofollow”>……

С уважением,…

Konstantin
June 19th, 2010 at 6:22 pm

Medicamentspot.com International Legal RX Medications. Special Internet Prices (up to 40% off average US price). NO PRIOR PRESCRIPTION REQUIRED!…

Combivir@buy.online” rel=”nofollow”>.…

CAMERON
June 24th, 2010 at 12:26 pm


Pillspot.org. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. Online Pharmacy. Buy pills online

Buy:Actos.Prevacid.Nexium.Lumigan.Accutane.Human Growth Hormone.Valtrex.Zovirax.Arimidex.100% Pure Okinawan Coral Calcium.Zyban.Retin-A.Prednisolone.Synthroid.Mega Hoodia.Petcam (Metacam) Oral Suspension….

BOB
July 15th, 2010 at 8:36 pm
Holders
August 30th, 2010 at 6:42 am

Leave a Comment

Name (required)

Mail (will not be published) (required)

Website

Comment