Re: Can't get form controls to show

Robert Jordan <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
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
		};
		Controls.Add(button);

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


Robert

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.