Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to load .resx file

How to load .resx file

Scheduled Pinned Locked Moved C#
graphicshardwarehelptutorialannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chito
    wrote on last edited by
    #1

    Hai I have One .resx file. I have embedded this file into my project. Assembly thisAssembly = Assembly.GetAssembly(Type.GetType("samp.Form1")); ResourceManager rmListImages = new ResourceManager("Images1", thisAssembly); imageList = new ImageList(); imageList.ImageSize = new Size(16, 16); Bitmap icons = (Bitmap)rmListImages.GetObject("Image"); When I am running the above code it is showing the following error. An unhandled 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 "Images.resources" was correctly embedded or linked into assembly "samp". baseName: Images locationInfo: resource file name: Images.resources assembly: samp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Can any body suggest how to solve this. Chito.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups