Hi,

Can someone test the code beneath and let me know if it works for them
before I commit it to bugzilla?

TTFN

Paul

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

public class FirstForm : Form
{
  private Container components;
  private Label howdyLabel;
  
  public FirstForm()
  {
    InitialiseComponent();
  }

  private void InitialiseComponent()
  {
    components = new Container();
    howdyLabel = new Label();

    howdyLabel.Location = new Point(12, 116);
    howdyLabel.Text = "Howdy, Partner!";
    howdyLabel.Size = new Size(567, 40);
    howdyLabel.AutoSize = true;
    howdyLabel.Font = new Font ("Sans Serif", 26, 
                                System.Drawing.FontStyle.Bold);
    howdyLabel.TabIndex = 0;
    howdyLabel.Anchor = AnchorStyles.None;
    howdyLabel.TextAlign = ContentAlignment.MiddleCenter;

    Text = "First form";
    Controls.Add(howdyLabel);
  }

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


-- 
"A lot of football success is in the mind. You must believe you are the
best and then make sure that you are. In my time at Liverpool we always
said we had the best two teams on Merseyside, Liverpool and Liverpool
Reserves." - Bill Shankly

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to