open System.Windows.Forms open System.Drawing open System let win = new Form () win.ClientSize <- Size (500, 500) let label = new Label () win.Controls.Add label label.Width <- 200 label.Text <- string System.DateTime.Now let timer = new Timer() timer.Interval <- 1000 timer.Enabled <- true timer.Tick.Add (fun e -> label.Text <- string System.DateTime.Now) Application.run win
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)