![]() |
Windows Forms Application |
|
Fundamentals |
|
Introduction |
To create a form-based application, declare a variable of type Form (from the System.Windows.Forms namespace and ou must add that reference). Then pass that variable to the Application.Run() method. Here is an example:
open System; open System.Windows.Forms; let Starter:Form = new Form(); Application.Run(Starter);
Here is an example that specifies the caption of the form:
open System open System.Windows.Forms let form1 = new Form() form1.Text <- "XYZ" [] do Application.Run(form1)
|
|
|
|
||
| Previous | Copyright © 2009 C# Key | Next |
|
|
||