When you add an icon to assembly resources, Build Action for that resource needs to be set to Embedded Resource. If not then the resulting stream will be null. Select the icon resource in Project Explorer, go to Properties Window, and change Build Action to Embedded Resource.