In my application, I am providing a plugin capability by using an interface
to specify what the plugin should do. One of the functions is
'CreateConfigurationControl' which returns a UserControl.
I am now trying to localize the application, and I'm setting the
Thread.CurrentThread.CurrentCulture and CurrentUICulture objects as the
very first thing in my Main(). The forms that are created normally are all
appearing as their localized versions, but the control that I receive from
the CreateConfigurationControl is not, even though there is a localized
version defined.
In order to actually create the control, I've tried a simple 'new
ConfigControl()' and Activator.CreateInstance, passing
Thread.CurrentThread.CurrentUICulture to the appropriate version of
CreateInstance(Type, BindingFlags, Binder, object[], CultureInfo), but I
still get back the default English version...
Any suggestions on what I might be doing wrong, or if there is an easier
way to guarantee that I get back the correct localized version of my
control?
-mdb