January 2003
Beginner
696 pages
16h 38m
English
| Q1: | Is it possible to have multiple forms with multiple locales running in the same Windows Forms application? |
| A1: | Yes, that's 100% possible. Because the running thread defines the CurrentUICulture, you can create a new thread in your application to display another locale. The following pseudo-code does just that:
Sub Main() Dim t1 as new Thread(AddressOf DoLocale1) Dim t2 as new Thread(AddressOf DoLocale2) End Sub Sub DoLocale1() t1.CurrentUICulture = New CultureInfo(ìes-ESî) End Sub Sub DoLocale2() t2.CurrentUICulture = New CultureInfo(ìtt-RUî) End Sub In the code for the individual threads, you could create a new ResourceManager instance to retrieve the culture specific resources from the XML-based resource assembly file. |
| Q2: | This stuff ... |
Read now
Unlock full access