System.ArgumentNullException im mscorlib.dll
The name of my resourse file is SC.rs
How does the function know that?
I am confused as how this should work?
When you say "Embedded icon in my assembly" what do you mean. I know I have
a .res file with an icon in it.
-Louie
"Siva M" <sh******@online.excite.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
What error are you getting? Are you passing the correct resource name
(including the namespace)?
"Lou" <lo********@comcast.net> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
I changed
ico = New System.Drawing.Icon(res)
to
ico = New System.Drawing.Icon(res.BaseStream)
but now it crashes on
System.IO.StreamReader([Assembly].GetEntryAssembly.GetManifestResourceStream("mnu_f ile_open"))Ihave
a resource fil in my project but how do I add it to the assembly?"SivaM"
<sh******@online.excite.com> wrote
inmessagenews:uw**************@TK2MSFTNGP15.phx.gb l...> Assuming you
haveembedded the icon in the current assembly:>> Dim res
AsNew>System.IO.StreamReader([Assembly].GetEntryAssembly.GetManifestResourceStream("mnu_f ile_open"))>
Dim ico As System.Drawing.Icon>> ico = NewSystem.Drawing.Icon(res)>
res.Close()>>> "Lou" <lo********@comcast.net>wrote in message>
news:ei*************@TK2MSFTNGP09.phx.gbl...> How do i getan icon from a
resourse file> Dim IC As New Icon(Icon, "mnu_file_open")>>>>That doesn't
work?>>>