MessageBox.Show : MessageBox « System.Windows.Forms « C# / C Sharp by API






MessageBox.Show

 


using System.Windows.Forms;
   
class TwoForms
{
     public static void Main()
     {
          Form form1 = new Form();
          Form form2 = new Form();
   
          form1.Text = "Form passed to Run()";
          form2.Text = "Second form";
          form2.Show();
   
          Application.Run(form1);
   
          MessageBox.Show("Application.Run() has returned control back to Main.","TwoForms");
     }
}

   
  








Related examples in the same category

1.MessageBox.Show(String value)
2.MessageBox.Show(String, String);