I have a windows forms button and I attach a function to its Click event, how can I make the function evaluate to the unit type?
let
button = new Button()
button.Click.Add(buttonClicked)
let
buttonClicked (e:System.EventArgs) =
let d = MessageBox.Show(e.ToString())
printf
"" // stupid way of forcing the expression to evaluate to the unit type .. (?)
Any suggestions?