Is there any possible way to change the language of a form with a button or checkbox. I have found and tried

ChangeLanguage("de")

But that no work.

Any Ideas ? :)
Thanks

I kinda figured it out, I put it together like what the page tells you to do. And here it is

Private Sub comboBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
        If ComboBox1.SelectedItem.ToString() = "English" Then
            ChangeLanguage("en")
        ElseIf ComboBox1.SelectedItem.ToString() = "Spanish" Then
            ChangeLanguage("es-ES")
        Else
            ChangeLanguage("fr-FR")
        End If
    End Sub

    Private Sub ChangeLanguage(ByVal lang As String)
        For Each c As Control In Me.Controls
            Dim resources As ComponentResourceManager = New ComponentResourceManager(GetType(Form1))
            resources.ApplyResources(c, c.Name, New CultureInfo(lang))
        Next c
    End Sub

But when I use the combo box, nothing happens. Is there something I did wrong? and here is the top.

Imports System.Globalization
Imports System.Threading
Imports System.ComponentModel

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ComboBox1.Items.Add("English")
        ComboBox1.Items.Add("Spanish")
        ComboBox1.Items.Add("French")
        ComboBox1.SelectedIndex = 0

lol. okay thanks I Will check this out and see if it helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.