[Mono-bugs] [Bug 80000][Maj] New - Setting Dock-Property on one controls hides the other.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Nov 21 15:41:34 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by latency at gmx.de.

http://bugzilla.ximian.com/show_bug.cgi?id=80000

--- shadow/80000	2006-11-21 15:41:34.000000000 -0500
+++ shadow/80000.tmp.24016	2006-11-21 15:41:34.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 80000
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: latency at gmx.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Setting Dock-Property on one controls hides the other.
+
+Description:
+Setting Docks on one control hides another one. To reproduce run the
+example below. First keep the comment, then remove it to see what happens.
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+ 
+namespace test
+{
+	class TestForm : Form
+	{
+		public static void Main(string[] args)
+		{
+			new TestForm();
+		}
+		
+		public TestForm()
+		{
+			Label lbl = new Label();
+			//lbl.Dock = DockStyle.Top | DockStyle.Right;
+			lbl.Text = "jo";
+			this.Controls.Add(lbl);
+			ListView lv = new ListView();
+			lv.Top = lbl.Bottom;
+			this.Controls.Add(lv);
+			this.ShowDialog();
+		}
+	}
+}


More information about the mono-bugs mailing list