Wednesday, January 9, 2019

MessageBox.Show is the alert of WinForms!

alert("look at me!");

 
 

The JavaScript above has a counterpart in the C# below which will make like a little modal within a WinForm appear. The first parameter is the guts of the message and the second is what goes in the title bar of the box.

MessageBox.Show("look at me!", "Attention:");

No comments:

Post a Comment