First you need to make the icon an embedded resource, select the icon in VS.NET then change the Build Action to "Embedded Resource".
Icon myIcon = new Icon(GetType(), "myicon.ico"); Assuming the type is in the same assembly as the icon. HTH, James Johnson -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Joao Santa Barbara Sent: Thursday, April 18, 2002 3:43 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Load Icons Sorry about my stupid question how can i load an icon i put the icon on the project files ( right side in where are the classes and objects , forms and ....) , but i want to use it and i dont know how :.... :( many thanks JSB You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.