I do not recommend you write it on one line, because this means that it will be a mixture between #light (the default by default) and non #light syntax. If you really need to, you can use ;; eg:
open System
open System.Windows.Forms
let mainForm = new Form()
let contextMenu = new ContextMenuStrip();; mainForm.ContextMenuStrip <- contextMenu;;
If your expressions are of unit type, you can use Expression Execution Expression, which is a form expression:
expr1; expr2; expr3
eg:
mainForm.ContextMenuStrip <- contextMenu; 5 + 6 |> ignore; mainForm.ContextMenuStrip <- null
, Sequential Execution non #light. .
, .