Permalink
Browse files

* Fix propertygrid sample - control adding order has to be in reverse…

… for docking to work properly

2007-10-29  Andreia Gaita <avidigal@novell.com>

svn path=/trunk/winforms/; revision=88387
1 parent f5ce5f7 commit ef637c8dc6677cf345df332f6b095b0002b7d344 @shana shana committed Oct 29, 2007
Showing with 2 additions and 3 deletions.
  1. +2 −3 propertygrid/swf-propertygrid.cs
@@ -23,8 +23,6 @@ class MainWindow : System.Windows.Forms.Form {
textbox.TabIndex = 1;
textbox.Dock = DockStyle.Top;
- this.Controls.Add(textbox);
-
propertygrid = new PropertyGrid();
propertygrid.CommandsVisibleIfAvailable = true;
propertygrid.Location = new Point(0, textbox.PreferredHeight + 10);
@@ -33,7 +31,8 @@ class MainWindow : System.Windows.Forms.Form {
propertygrid.Text = "Property Grid";
propertygrid.Dock = DockStyle.Fill;
- this.Controls.Add(propertygrid);
+ this.Controls.Add(propertygrid);
+ this.Controls.Add (textbox);
propertygrid.SelectedObject = textbox;

0 comments on commit ef637c8

Please sign in to comment.