M
MuZZY
Hi,
I have a WinForms app source code with a batch file containing
compilation script:
csc /t:winexe /r:System.dll /r:System.Drawing.dll
/r:System.Windows.Forms.dll /r:Cassini.dll /win32icon:myicon.ico
/res:myicon.ico, MyCustomIcon /out:MyApp.exe MyForm.cs
which works fine if i compile from command line, but if i use VS.NET,
i get an exception in MyForm.cs on this line:
//-----------------------------------
Icon = new
Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream("MyCustomIcon"));
//-----------------------------------
As i understand i need to add icon myicon.ico as a resource with the
resource name "MyCustomIcon".
How can i do that?
Thank you for any ideas!
Andrey
I have a WinForms app source code with a batch file containing
compilation script:
csc /t:winexe /r:System.dll /r:System.Drawing.dll
/r:System.Windows.Forms.dll /r:Cassini.dll /win32icon:myicon.ico
/res:myicon.ico, MyCustomIcon /out:MyApp.exe MyForm.cs
which works fine if i compile from command line, but if i use VS.NET,
i get an exception in MyForm.cs on this line:
//-----------------------------------
Icon = new
Icon(Assembly.GetExecutingAssembly().GetManifestResourceStream("MyCustomIcon"));
//-----------------------------------
As i understand i need to add icon myicon.ico as a resource with the
resource name "MyCustomIcon".
How can i do that?
Thank you for any ideas!
Andrey