[Mono-bugs] [Bug 74795][Wis] New - PictureBox Paint Event
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 2 May 2005 06:18:45 -0400 (EDT)
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 dnichici@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74795
--- shadow/74795 2005-05-02 06:18:45.000000000 -0400
+++ shadow/74795.tmp.6107 2005-05-02 06:18:45.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 74795
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: GC
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: dnichici@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: PictureBox Paint Event
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+in a window form the Paint event handler is never called
+
+Steps to reproduce the problem:
+1.
+2.
+3.
+
+Actual Results:
+
+
+Expected Results:
+
+
+How often does this happen?
+
+
+Additional Information:
+
+ this.pictureBox2.Paint += new
+System.Windows.Forms.PaintEventHandler(this.carPict_Paint);
+
+....
+ private void carPict_Paint(object sender,
+System.Windows.Forms.PaintEventArgs e)
+ {
+
+ // Create a local version of the graphics object for the
+PictureBox.
+ Graphics g = e.Graphics;
+
+ Pen accessPen = new Pen(Color.Green, 3);
+ Rectangle newRect = new Rectangle(0,0,100,100);
+ g.DrawRectangle(accessPen, newRect);
+
+
+}