[Mono-winforms-list] Can't get form controls to show

Robert Jordan robertj at gmx.net
Sat Apr 17 11:23:06 EDT 2010

On 17.04.2010 16:36, Steve Ricketts wrote:
> But that doesn't work either.  What am I doing wrong?

Just in case you're still wondering why you didn't get responses so far:

*No one* will try to reproduce your issues w/out a self-contained
test case provided by yourself.

For a start, this is test case supposed to reproduce the issue,
but of course it doesn't. Please make it fail and then we'll tell
you if it's Mono's or your bug:

using System;
using System.ComponentModel;
using System.Windows.Forms;

class MainForm : Form
	static void Main ()
		Application.Run(new MainForm());

	public MainForm ()
		var button = new Button () {
			Text = "Do background work",
			Width = 200

		button.Click += delegate {
			var bw = new BackgroundWorker ();
			bw.RunWorkerCompleted += delegate {
				button.Text = "I'm done";
				button.Enabled = false;
			bw.RunWorkerAsync ();


More information about the Mono-winforms-list mailing list