Am Donnerstag, den 16.03.2006, 13:19 -0800 schrieb Jackson Harper:
> Alex, since you obviously cleaned up the code to test this do you mind
> posting the clean code to the list?
>
> Thanks!
> Jackson
2 semicolons and one s, nothing else...
File is attached.
Cheers
Alexander Olk
using System;
using System.Drawing;
using System.Windows.Forms;
class simpletest : Form
{
private NumericUpDown number;
public simpletest()
{
number = new NumericUpDown();
number.Location = new Point(12, 12);
number.Name = "numberbox";
number.Size = new Size(50, 23);
number.ValueChanged += new EventHandler(number_ValueChanged);
AutoScaleBaseSize = new Size(5, 13);
ClientSize = new Size (80, 40);
Controls.Add(number);
Name = "simpletest";
Text = "NumericUpDown text";
}
private void number_ValueChanged(object sender, System.EventArgs e)
{
Console.WriteLine("Event triggered happily");
}
public static void Main()
{
simpletest t = new simpletest();
Application.Run(t);
}
}
_______________________________________________
Mono-winforms-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list