Hide this comment

There's no /win32icon flag on the compiler like there is with C# (and thus no direct F# property page support for the icon), but you can use the --win32res flag to embed resources that contain an icon. That is, use e.g. rc.exe to create a .res file that contains the icon, and then use that .res file (either via F# application property pages, or with --win32res:foo.res on the command-line).

By on 11/5/2009 12:30 PM ()Reply
Hide this comment

This works. Make a .rc file with the following line:

1 ICON "icon.ico"

Then compile it and include the .res file in your project's properties page.

You may also include .resources files in your project but the system will not pull the application icon from those.

By on 3/19/2010 1:28 PM ()Reply
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper

Logging in...