Skip to content
Browse files

- More testcases

svn path=/trunk/winforms/; revision=55396
  • Loading branch information...
1 parent 594493e commit 48ec5bb4377bfeb0940ba038a15b112cbab2371c Peter Dennis Bartok committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 modal/modal.cs
View
11 modal/modal.cs
@@ -225,12 +225,14 @@ static void Main()
Form f;
Label l;
Button b;
+ Button b2;
t.Stop();
l = new Label();
f = new Form();
b = new Button();
+ b2 = new Button();
f.Text = "Timer-driven Form";
@@ -240,8 +242,13 @@ static void Main()
b.Text = "New modal";
b.Click += new EventHandler(b_Click);
+ b2.Text = "Application Exit";
+ b2.Click += new EventHandler(b2_Click);
+ b2.Location = new Point(0, 40);
+
f.FormBorderStyle = FormBorderStyle.FixedDialog;
f.Controls.Add(b);
+ f.Controls.Add(b2);
f.Controls.Add(l);
f.BackColor = Color.SeaShell;
f.ShowDialog();
@@ -286,5 +293,9 @@ private class myform : Form {
f.DisplayInfo();
MessageBox.Show("Past ShowDialog() inside ShowDialog", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
+
+ private void b2_Click(object sender, EventArgs e) {
+ Application.ExitThread();
+ }
}
}

0 comments on commit 48ec5bb

Please sign in to comment.
Something went wrong with that request. Please try again.