Permalink
Browse files

New test, shows off all the different border styles.

svn path=/trunk/winforms/; revision=53279
  • Loading branch information...
1 parent a84bcb1 commit 5f86eace62e9034c4c69ec63250f20bdcfe6c3d8 Jackson Harper committed Nov 19, 2005
Showing with 17 additions and 18 deletions.
  1. +17 −18 mdi/swf-mdi.cs
View
@@ -15,28 +15,27 @@ public class MainForm : Form {
private Form form_one;
private Form form_two;
-
+ private Form form_three;
+
public MainForm()
{
IsMdiContainer = true;
-
- form_one = new Form();
- form_one.MdiParent = this;
- form_one.Name = "One";
- form_one.Text = "One";
- form_one.BackColor = Color.Red;
- form_one.Show ();
-
- form_two = new System.Windows.Forms.Form();
- form_two.Left = form_one.Right + 10;
- form_two.MdiParent = this;
- form_two.Name = "Two";
- form_two.Text = "Two";
- form_two.BackColor = Color.Black;
- form_two.Show ();
+ Text = "I am the toplevel window";
- Width = form_one.Width * 2;
- Height = form_one.Height * 2;
+ foreach (FormBorderStyle bs in Enum.GetValues (typeof (FormBorderStyle))) {
+ Form form = new Form ();
+ form.MdiParent = this;
+ form.Name = bs.ToString ();
+ form.Text = bs.ToString ();
+ form.FormBorderStyle = bs;
+
+ form.Top = 75;
+ form.Left =75;
+ form.Width = 200;
+ form.Height = 100;
+ form.BackColor = Color.Red;
+ form.Show ();
+ }
}
public static void Main (string [] args)

0 comments on commit 5f86eac

Please sign in to comment.