Extract application icon for main form
Extract application icon for main form

Also, wrap usage of code to obtain current process in a using
block (it's IDisposable), and cache the result.

neosmart/betterpad