Skip to content

Instantly share code, notes, and snippets.

@SteveGilham
Last active December 13, 2015 09:30
Show Gist options
  • Save SteveGilham/5fb0e7bd81e5bd8d3f3b to your computer and use it in GitHub Desktop.
Save SteveGilham/5fb0e7bd81e5bd8d3f3b to your computer and use it in GitHub Desktop.
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