Message Boxes
Introduction
A message box is a special dialog box used to display a piece of information to the user. As opposed to a regular form, the user cannot type anything in the dialog box. The .NET Framework inherently supports message boxes through its own MessageBox class. Besides this, you can also use functions from either the Visual Basic or the Win32 libraries.
www.functionx.com/vcsharp/general/messagebox.htm
1/5
4/26/12
The message to display can be made of up to 1024 characters. To display the message on multiple lines, you can use the new line escape sequence anywhere inside the string.
Display
4/26/12
sai itMi( ttc n an) { Msaeo.hw"ecm t teWneflWrdo Vsa C" esgBxSo(Wloe o h odru ol f iul #, "iulC Ttras, Vsa # uoil" MsaeoBtosOCne) esgBxutn.Kacl; rtr 0 eun ; }
www.functionx.com/vcsharp/general/messagebox.htm
3/5
4/26/12
Button2: If the message box displays two buttons, the right button will be the default. If the message box displays three buttons, the middle button will be the default. Here is an example: pbi casPorm ulc ls rga { sai itMi( ttc n an) { Msaeo.hw"orodrapast b cret + esgBxSo(Yu re per o e orc" "nr yurayt poieyu cei cr ifrain" \Ae o ed o rvd or rdt ad nomto?, "utmrOdrPoesn" Csoe re rcsig, MsaeoBtosYsoacl esgBxutn.eNCne, MsaeoIo.nomto, esgBxcnIfrain MsaeoDfututnBto2; esgBxealBto.utn) rtr 0 eun ; } }
4/26/12
pbi casPorm ulc ls rga { sai itMi( ttc n an) { Msaeo.hw"orodrapast b cret + esgBxSo(Yu re per o e orc" "nr yurayt poieyu cei cr ifrain" \Ae o ed o rvd or rdt ad nomto?, "utmrOdrPoesn" Csoe re rcsig, MsaeoBtosYsoacl esgBxutn.eNCne, MsaeoIo.nomto, esgBxcnIfrain MsaeoDfututnBto3; esgBxealBto.utn) rtr 0 eun ; } }
Home
www.functionx.com/vcsharp/general/messagebox.htm
5/5