// fsiで#load "foo.fsx";;してください
let onPaint(e : System.Windows.Forms.PaintEventArgs) =
e.Graphics.DrawString("Hello, World!",
new System.Drawing.Font("Arial", 20.0f),
System.Drawing.Brushes.Blue,
50.0f,
50.0f)
let f = new System.Windows.Forms.Form()
f.Text <- "Hello, World in F#"
Event.add onPaint f.Paint
f.Show()
F# - フォームを表示
F# - フォームを表示
コメントはまだありません。