I have created a framework with all our controls and forms we re-use
in different projects. When we build the framework application we
have a dll that we can reference in our project. When I create a form
in my new project I can inhertis from a form in my framework thru the
referenced dll.
I will illustrate this with an example:
I have a login form in the framework with 2 labels (User and
pasword),
2 textboxen (user name and pasword) and 2 buttons (OK, Cancel).
With the
property localizable and language, I have created the form in
dutch and
french.
code in project:
Thread.CurrentThread.CurrentUICulture = New
CultureInfo("fr-FR")
Dim objlogin As New LoginForm()
objlogin.ShowDialog()
In my project (referene to the framework.dll), I define a object to
that login form and display it (showdialog). I set the
currentUICulture to fr-FR (french) before definition.
I would expect that my loginform shows up with the labels in frech
(User = Utilisateur, pasord = mot de passe) but it isn't (still
english).
What the hell I'm doing wrong???????
when I inlcude the loginform from my framework into my project it
works fine. So I think that localizable doesn't work thru dll's
Is somebody out there that can help me???
Thank you in advance
Kristof Brebels
IT-Departement
kb******@profel.be