I obviously didn't design this form....so did the designer put the icon in the resource file, or did the programmer put the resource in the resource file and then somehow got the property to reference it?
-----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Nicholls, Mark Sent: 30 November 2007 16:16 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] pathetic and infuriating problem.... I HAVE found the blasted thing.....UI's are not my strong point.... But how does the icon property work in the property page in the ide.....it just seems to want me to find an .ico file.....but if the icon is in the resource file then what do I do? -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Miley Sent: 30 November 2007 16:13 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] pathetic and infuriating problem.... It stores it in the Resources collection under the Properties of your project. For instance, say your project is named "TestApp". In the Solution Explorer you have your tree starting with "Solution 'TestApp' (1 project)". From there, navigate down through the tree: Solution 'TestApp' (1 project) > TestApp > Properties > Resources.resx Double click "Resources.resx" to open it up, then in the upper left of the window you should see a drop-down menu button "Strings", click that and select "Icons" or "Images", this is where your Icons and Images, respectively, can be stored and accessed. Hope that helps some. -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mark Nicholls Sent: Friday, November 30, 2007 10:49 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: pathetic and infuriating problem.... Its the little things that drive you mad. I've got an icon set on a form....if you look in the property page then there's a little picture of the icon, but where does it come from?...if I press the "..." button, I would expect it to be there....but it isn't. If I look in the code it says... this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); but what does that mean..... where is it....I'm pulling my hair out. =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com