Error initializing button with attached image RRS feed

  • Question

  • I posted this earlier, but it seems to have disappeared 

    When I set the image field of a button on my form, I get the following error when my form is initializing.

    A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll

    Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly.  Make sure "Form1.resources" was correctly embedded or linked into assembly "test2".
    baseName: Form1  locationInfo: test2.Form1  resource file name: Form1.resources  assembly: test2, Version=1.0.2162.17278, Culture=neutral, PublicKeyToken=null

    The statement being executed at the time is

    .buttonCancel.Image = ((System.Drawing.Image)(resources.GetObject("buttonCancel.Image")));

    Any help greatly appreciated.

    Friday, December 2, 2005 6:50 PM