Advertisement
wandrake

Untitled

Feb 22nd, 2012
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.37 KB | None | 0 0
  1. open System
  2. open System.Windows.Forms
  3.  
  4. let form = new Form(Text = "Sono una cosa inutile :D!", Width = 800, Height = 600)
  5.  
  6. form.MouseDown
  7.     |> Event.add (fun _ -> printfn "Ehiehiehi, hai premuto un tasto del mouse!")
  8.  
  9. form.MouseWheel
  10.     |> Event.add (fun e -> printfn "Ehiehiehi, hai mosso la rotella di %d tacche!" e.Delta)
  11.  
  12. [<STAThread>]
  13. do Application.Run (form)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement