Im having a problem with this Icon class
-
Hi..... Im workin on Icon class where im gettin this exception at the declarartion of the icon obj private Icon myIcon= new Icon(typeof(Form1)).Assembly.GetManifestResourceStream("winapptry.app.ico" )); An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll with additional info as Additional information: Could not find file "..\Visual Studio Projects\winapptry\bin\Debug\winapptry.app.ico". just dunno how to sort tht out sathy -- modified at 8:15 Wednesday 28th December, 2005
-
Hi..... Im workin on Icon class where im gettin this exception at the declarartion of the icon obj private Icon myIcon= new Icon(typeof(Form1)).Assembly.GetManifestResourceStream("winapptry.app.ico" )); An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll with additional info as Additional information: Could not find file "..\Visual Studio Projects\winapptry\bin\Debug\winapptry.app.ico". just dunno how to sort tht out sathy -- modified at 8:15 Wednesday 28th December, 2005
First of all you have forgotten a "(" so your code won't even compile. Check the following: 1. You have a file named "app.ico" in the same project as Form1 (and not in a subfolder). 2. This file is a valid icon. 3. You have set its build action to "Embedded Resource". 4. The root namespace of your project is named "winapptry".
-
First of all you have forgotten a "(" so your code won't even compile. Check the following: 1. You have a file named "app.ico" in the same project as Form1 (and not in a subfolder). 2. This file is a valid icon. 3. You have set its build action to "Embedded Resource". 4. The root namespace of your project is named "winapptry".