ComponentOne Scheduler for WinForms
Switching Resources at Run Time
Working with Scheduler for WinForms > Localization > Switching Resources at Run Time

Once you have created your localized resources, you can also easily switch between resources at run time by using the following code:

To write code in Visual Basic

Visual Basic
Copy Code
' This will switch to German locale.        
System.Threading.Thread.CurrentThread.CurrentUICulture = New CultureInfo("de")

To write code in C#

C#
Copy Code
// This will switch to German locale.        
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");