[Mono-bugs] [Bug 82481][Wis] Changed - ToolStripStatus is dead

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Aug 20 11:21:54 EDT 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 monkey at jpobst.com.

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

--- shadow/82481	2007-08-20 11:18:59.000000000 -0400
+++ shadow/82481.tmp.28938	2007-08-20 11:21:54.000000000 -0400
@@ -33,6 +33,43 @@
         GC:            Included Boehm (with typed GC)
         SIGSEGV:       altstack
         Notifications: epoll
         Architecture:  x86
         Disabled:      none
 [eric at surfzoidPC tmp]$
+
+------- Additional Comments From monkey at jpobst.com  2007-08-20 11:21 -------
+In case I lose it, here's my test case for this:
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+	[STAThread]
+	static void Main ()
+	{
+		Application.Run (new MainForm ());
+	}
+
+	StatusStrip ss;
+
+	public MainForm ()
+	{
+		ss = new StatusStrip ();
+		ss.Items.Add (new ToolStripProgressBar ());
+		ss.Items.Add (new ToolStripStatusLabel ("Start"));
+		Controls.Add (ss);
+		
+		Button b = new Button ();
+		b.Top = 50;
+		b.Click += new EventHandler (b_Click);
+		Controls.Add (b);
+	}
+
+	void b_Click (object sender, EventArgs e)
+	{
+		(ss.Items[1] as ToolStripStatusLabel).Text = "Finish";
+		(ss.Items[0] as ToolStripProgressBar).Value += 1;
+	}
+}


More information about the mono-bugs mailing list