Accessing form's resources (resx file) from code
        Posted  
        
            by kzen
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by kzen
        
        
        
        Published on 2010-04-15T03:53:32Z
        Indexed on 
            2010/04/15
            4:23 UTC
        
        
        Read the original article
        Hit count: 312
        
If I have a form Frm1.cs that is using some icons, images or other resources, these resources get stored in the form's resx file (Frm1.resx).
My simple question is how do I access these resources from code?
As a workaround I can store these resources in the Project resource file and they will be available via Properties.Resources.resourcename. 
However, similar syntax does not work for the resources stored in the form's resource file.
While searching for a solution I have come across several references to ResourceManager class but was not able to find a way to use that to access the form's resources...
© Stack Overflow or respective owner