Last active
December 13, 2015 09:30
-
-
Save SteveGilham/5fb0e7bd81e5bd8d3f3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override this.OnLoad(e:EventArgs) = | |
this.Visible <- false // Hide form window. | |
this.ShowInTaskbar <- false; // Remove from taskbar. | |
(this :> INetworkListManagerEvents).ConnectivityChanged(nlm.GetConnectivity()) | |
let nlmGuid = typeof<INetworkListManagerEvents>.GUID | |
let icpc = (nlm :> obj) :?> IConnectionPointContainer | |
icp <- icpc.FindConnectionPoint(ref nlmGuid); | |
cookie <- icp.Advise(this); | |
base.OnLoad(e) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment