[Mono-bugs] [Bug 76993][Min] Changed - Location for texboxes
instanciated at runtime are incorrect
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Dec 30 12:32:18 EST 2005
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 bruno.juste at scarlet.be.
http://bugzilla.ximian.com/show_bug.cgi?id=76993
--- shadow/76993 2005-12-18 20:03:50.000000000 -0500
+++ shadow/76993.tmp.29794 2005-12-30 12:32:18.000000000 -0500
@@ -51,6 +51,29 @@
affected control creation, before those fixes I could not reproduce
the described behaviour (I was not getting any textboxes displayed at
all, as opposed to them being just at the wrong location)
Could you please test with svn head and let me know if you're still
seeing this problem? If so, would you please attach your testcode?
+
+------- Additional Comments From bruno.juste at scarlet.be 2005-12-30 12:32 -------
+Ok this works with the latest version.
+For the sake of completeness, here's the code
+that caused the bug :
+
+private void btnAddCompe_Click(object sender, System.EventArgs e)
+
+{
+ TextBox tb_compelabel = new TextBox();
+ //this.panCompe.Controls.Add( tb_compelabel );
+
+ tb_compelabel.Text = "compelabel"+ nDynCompeCount.ToString();
+
+ tb_compelabel.Size = new Size(80,23);
+
+ tb_compelabel.Location = new Point(0,nDynCompeCount * 23);
+
+ tb_compelabel.Name = "Label_" + this.nDynCompeCount.ToString();
+
+ nDynCompeCount++;
+ panCompe.Controls.Add(tb_compelabel);
+}
More information about the mono-bugs
mailing list