Jun 26

F# Hello Winform

The following is a hello world WinForms example:

    open System
    open System.Windows.Forms

    let form = new Form()
    do form.Width  

If you save the above as


then assuming fsc is in your path, you can compile and run it as follows:

    cd devsrc
    fsc devsrchelloforms.fs

Leave a Reply