[Mono-winforms-list] Font problem?

Paul paul at all-the-johnsons.co.uk
Tue Aug 23 11:41:42 EDT 2005


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



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

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

  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, 
    howdyLabel.TabIndex = 0;
    howdyLabel.Anchor = AnchorStyles.None;
    howdyLabel.TextAlign = ContentAlignment.MiddleCenter;

    Text = "First form";

  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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20050823/9b7816b9/attachment.bin

More information about the Mono-winforms-list mailing list