VB.Net 2008: How to use a Custom Resource Provider in .Net windows forms?

Posted on 2008-11-10
Last Modified: 2012-05-05
I need to localize a windows form application, using an external source, e.g. a database or a text file.
in Asp.Net it's easy using a custom resourceProvider and resourceProviderFactory. But this doesn't work in windows forms. How can I do?
Question by:lorenzopuglioli
    LVL 96

    Expert Comment

    by:Bob Learned
    See if this helps:
    Walkthrough: Localizing Windows Forms

    <Quote>The Visual Studio project system provides considerable support for localizing Windows Forms applications. There are two ways to generate resource files using the Visual Studio development environment:

    Have the project system generate the resource files for localizable UI elements such as text and images on the form. The resource files are then built into satellite assemblies. These are known as forms-based resources.

    Add a resource file template and then edit the template with the XML Designer. A reason for doing the latter is to make localizable strings that appear in dialog boxes and error messages. You must then write code to access these resources. These are known as project resources.

    In general, you should use forms-based resources for all resources specific to a form in your Windows Forms application. You should use project resources for all non-forms-based user interface strings and images, such as error messages. </Quote>

    Author Comment

    Yes, I know the visual studio localization capabilities in standard scenarios. But I need to localize my project using an access database as a repository for the localized strings, instead of xml files or satellite assemblies. In web applications I can do that, because of the provider-model used.
    But, I don't know if this mode is also implemented for windows forms.
    LVL 96

    Accepted Solution

    I hear ya, my friend, but unfortunately ASP.NET uses the resource provider model, and Windows Forms uses the resource manager model, and they aren't exactly the same.


    Trying to implement IImplicitResourceProvider

    Author Comment

    Thank you... I hoped that there were a workaround or similar, but it seems that no one knows how to do!

    Author Comment

    Sorry, by TheLearnedOne did not solve my problem. Why he get the points for the question?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Article by: jpaulino
    XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String ( Literal, only instead of starting and ending with w…
    I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now