Embedding icons
-
Hi everyone I have followed Scotts Bonds instructions on how to embedd an icon into the exe or DLL but always get the same exception the instruction are: To embed your icons in your application, drag them into your .NET project. Edit the properties for each one. See the "Build Action" property that's set to "Content"? Change it to "Embedded Resource." That will make it compile into your exe or DLL. That's it! You've just embedded an icon or two into your application. So...how do you get it back out? Function GetEmbeddedIcon(ByVal strName As String) As Icon Return New _Icon(System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream(_ strName)) End Function The strName parameter is of the format .. so, something like MyApplication.MyLogo.ico. I have chnaged the icons to be embedd resources when built but get the error message that MyLogo is not a memebr of MyApplication. Does anybody know what I am doing wrong and a solution to solve this. Thanks Vu