I am a beginner in F#, but have programmed a little in C # earlier.
I am trying to figure out how to write a ButtonClicEvent that will AppendText from a button (Or somewhere else) to a existing text in a textbox..
This is from C#:
private void Btn_Click(object sender, EventArgs e)
{
// if the eventhandler contains more than one button
var btn = (sender as Button);
textBox.AppendText(btn.Text);
}
Need to know how to do that in F#.
1 Answer