ユーザインターフェイス以外のロジックしか、F# で書いたことがなかったので。ごく単純な Form を作るコードを F# で書いてみました。一応、動作するコードです。
open System
open System.Drawing
open System.Windows.Forms
type MainForm =
class
inherit Form as base
val label: Label
new () as this = {
label = new Label(
Text = "Hello World",
Location = new Point(0,0)
)
} then
this.Controls.Add(this.label);
this.Text <- "Hello World";
end
let mainForm = new MainForm()
do Application.Run(mainForm)

