none
Why when I use ResourceReader read the resx file has error?

    Question

  • Hello.

    I want to use resx file to make a multi-language effect in my app.But when I use ResourceReader to read it, recevied ArgumentException. The message is "The stream is a incorrect resource file."(資料流不是有效的資源檔。)

    This issue just on I declared the class using the code following:
      Dim CultureName As String = My.Application.UICulture.Name
     Dim res As New System.Resources.ResourceReader(CultureName & "\Resource1.resx")

    The resx file I make it on VisualStudio 2008.

    Thinks a lot~
    Saturday, February 07, 2009 4:46 PM

Answers