[Mono-dev] Winforms broken in svn 122981

Paul paul at all-the-johnsons.co.uk
Sat Jan 10 11:03:58 EST 2009


Hi,

While I can get gmcs to build a winform application, mono itself is just
sitting there and doing nothing in the current svn build (122981, also
tested with 980).

Example code

using System;
using System.Windows.Forms;

namespace ProgCSharp
{
  public class HandDrawnClass : Form
  {
    private System.Windows.Forms.Label lblOutput;
    private System.Windows.Forms.Button btnCancel;

    public HandDrawnClass()
    {
      this.lblOutput = new System.Windows.Forms.Label();
      this.btnCancel = new System.Windows.Forms.Button();
      this.Text = "Hello World";
      lblOutput.Location = new System.Drawing.Point(16, 24);
      lblOutput.Text = "Hello World";
      lblOutput.Size = new System.Drawing.Size(216, 24);

      btnCancel.Location = new System.Drawing.Point(150, 200);
      btnCancel.Size = new System.Drawing.Size(112, 32);
      btnCancel.Text = "&Cancel";

      btnCancel.Click += new System.EventHandler(this.btnCancel_Click);

      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
      this.ClientSize = new System.Drawing.Size(300, 300);
      this.Controls.Add (this.btnCancel);
      this.Controls.Add (this.lblOutput);
    }

    protected void btnCancel_Click(object sender, System.EventArgs e)
    {
      Application.Exit();
    }

    public static void Main()
    {
      Application.Run(new HandDrawnClass());
    }
  }
}

compiled with

gmcs example13-1.cs -r:System.Windows.Forms -r:System.Drawing

I'm using fedora rawhide. Console applications work file, it just looks
like it's a winforms problem.

TTFN

Paul
-- 
Sie können mich aufreizen und wirklich heiß machen!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090110/7e65118d/attachment.bin 


More information about the Mono-devel-list mailing list