Monday, September 29, 2008

F# Winform

When you want to make a F# winform application and you don’t want to open an extra console when you start the application.

How can you do this (F# version 1.9.6.2)?

1. Create a F# application:

clip_image002[1]

[Edit- thanks Brian ]

2. Open the project properties

image

3. In the application tab change the output type

image

 

4. Add reference to the System.Windows.Forms

clip_image010[1]

5. Add your code.

clip_image012[1]

6. Run your app

clip_image014[1]

7. Close.

8. Add your own details.

1 comment:

Unknown said...

Or: right-click project, "Properties", "Application" tab, "Output type", select "Windows Application".

Total Pageviews