Home

Microsoft Visual F#: The Control Box of a Form

     

Introduction

open System;
open System.Drawing;
open System.Windows.Forms;

let frmMain = new Form();
frmMain.Text <- "Exercise";

let customIcon = new System.Drawing.Icon("C:\Exercise\Something.ico");
frmMain.Icon <- customIcon;

frmMain.ControlBox <- true;
frmMain.MinimizeBox <- true;
frmMain.MaximizeBox <- false;

[<STAThread>]
do
    Application.Run(frmMain);
 

Home Copyright © 2010 C# Key