Sign in to follow this  

Multi language Application

Recommended Posts


I use Mcam 2020 Version, and try to make some applications with and VS2019.

I have try to create a multi-lingual application, with separated  language files.
First i have try to make a basic application with a simply windows form:
 i have add to my project three resources files:


On each, two values:


Button1 | Button1

Label1 | Label1


Button1 | French

Label1 | TITLE

Button1 | Anglais

Label1 | TITRE

I have add a very simple Form (Form1) to my project, with only one Label and one button,  and write this code:

Imports MultilingualAPP.My.Resources
Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Call actualize()
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim RM As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
        If My.Application.UICulture.Name = "en-US" Then
            Call actualize()

            Call actualize()
        End If
    End Sub
    Private Sub actualize()
        Label1.Text = AppMess.Label1
        Button1.Text = AppMess.Button1
    End Sub
End Class

That's ok, each click on the button changed the form text language.

I have try to do exactly the same thing in a NET-Hooks C# and VB.NET project examples.

But in this project, no text change, that's only the default text (AppMess.resx) who is called... 

What is wrong?

Is there some modifications to make to the project?
What is the way to create a Multilingual application in a MC NET-Hook project?

I try to join my two trials, hope that will be usable...

Thantk's in advance!

Share this post

Link to post
Share on other sites

My initial testing was not successful and I'm not sure as to why even though I followed MS localization documentation. My workload is very high currently so I would encourage you to submit a ticket to request help with this via your re seller so that we can allocate resources to it.


Share this post

Link to post
Share on other sites


The different language-specific resources can be ->
In separate satellite DLLs placed in sub-folders such as "en-US" and "fr-FR",
or they can by embedded directly into the NET-Hook add-in DLL.
How you retrieve those resources will depend on which method you use.

Either through you dealer create a support ticket,
or email us directly sdk[at]mastercam[dot]com with you company contact information so we can create the ticket,
and we can help you out!




Share this post

Link to post
Share on other sites
8 hours ago, Mick George said:

Here is a link to a short but very good talk and demo of globalization of a .NET application

Internationalisation and Localisation in .NET

Very interesting talk, the part where he spoke about commas and periods being substituted based on language brought back some memories of a dark time when we used excel to modify our nc code zdepth. Instead of the zdepth being modified to( panel_thickness - .02) it interpreted it as (panel_thickness - 2.00) ergo the spindle head went crashing into the spoilboard. 

Share this post

Link to post
Share on other sites

Perhaps this is something I need to consider in my Nethook Nesting project where I am using  a winforms dialog to pass sheet sizes and material thickness into mastercam.

  • Like 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us