[Mono-bugs] [Bug 80451][Nor] New - Transparent control is not displayed properly
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jan 4 15:43:35 EST 2007
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 georgegiolfan at yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80451
--- shadow/80451 2007-01-04 15:43:35.000000000 -0500
+++ shadow/80451.tmp.30989 2007-01-04 15:43:35.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 80451
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: georgegiolfan at yahoo.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Transparent control is not displayed properly
+
+Description of Problem:
+A Control with the style SupportsTransparentBackColor set to true and
+BackColor set to Color.Transparent is not displayed properly.
+
+Steps to reproduce the problem:
+1. Compile and run the following program.
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+class TestForm : Form {
+ static void Main() {
+ Application.Run(new TestForm());
+ }
+ public TestForm() {
+ BackgroundImage = Icon.ToBitmap();
+ TransparentControl c = new TransparentControl();
+ c.BackColor = Color.Transparent;
+ c.Width = 100;
+ c.Dock = DockStyle.Right;
+ Controls.Add(c);
+ }
+ protected override void OnClick(EventArgs e) {
+ base.OnClick(e);
+ BackgroundImage = null;
+ }
+ class TransparentControl : Control {
+ public TransparentControl() {
+ SetStyle(ControlStyles.SupportsTransparentBackColor, true);
+ }
+ }
+}
+2. Resize the form so that its width changes and see or click on it.
+
+How often does this happen?
+Always (on SVN version).
More information about the mono-bugs
mailing list