The calculator also has a label control as the calculator display. Here is the main window class of our calculator: type MainWindow() = inherit Form() In F# language, class definitions start with the type keyword. The above class represents the main window of our calculator and it inherits the System.Windows.Forms.Form class.
https://www.codeproject.com/Tips/1039263/Simple-Calculator-In-Fsharp