ComponentOne Scheduler for WinForms
Setting the Current Culture
Working with Scheduler for WinForms > Localization > Setting the Current Culture

The C1Schedule control will use localization files automatically according to the culture selected in the application as long as you haven't moved files to another location or excluded files from the project. By default, the current culture is designated as System.Threading.Thread.CurrentThread.CurrentCulture. If you want to use a culture other than the current culture, you can set the desired culture in your application using the following code:

To write code in Visual Basic

Visual Basic
Copy Code
Public Sub New()   
   ' Set desired culture, for example here the French (France) locale.   
   System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("fr-FR")
  
   ' This call is required by the Windows Form Designer.    
   InitializeComponent()
        
   ' Add any initialization after the InitializeComponent() call.
End Sub

To write code in C#

C#
Copy Code
public Form1()
   {         
    // Set desired culture, for example here the French (France) locale.
        System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("fr-FR"); 
    
   // This call is required by the Windows Form Designer.
        InitializeComponent(); 
  
   // Add any initialization after the InitializeComponent() call.
  }