Link Resource Bundle

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DiDoria
    New Member
    • Mar 2007
    • 21

    Link Resource Bundle

    hey,

    I'm trying to link my resource bundle to my application but he always gives this message:

    Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "MyResourceBund le.resources" was correctly embedded or linked into assembly "Data Collector II" at compile time, or that all the satellite assemblies required are loadable and fully signed.

    name of resource bundle =
    MyResourceBundl e.resx

    Initialisation =
    private ResourceManager rm = new ResourceManager ("MyResourceBun dle",
    Assembly.GetExe cutingAssembly( ));

    Call =
    rm.GetString("E rrorOpeningFile Dialog")

    thx!
  • DiDoria
    New Member
    • Mar 2007
    • 21

    #2
    And when I use this =

    private ResourceManager rm = new ResourceManager ("Data_Collecto r_II.MyResource Bundle", Assembly.GetAss embly(typeof(Co nfigurationPane l)));

    he gives this error =

    stream is not a valid resource file.

    thx!

    Comment

    • DiDoria
      New Member
      • Mar 2007
      • 21

      #3
      Strange it works now :-)

      Just the same

      private ResourceManager rm = new ResourceManager ("Data_Collecto r_II.MyResource Bundle", Assembly.GetAss embly(typeof(Re portPanel)));

      But when I plase \n or \t in a string in my resource he displays \t an not a real tap or enter...

      thx

      Comment

      Working...