By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,725 Members | 1,269 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,725 IT Pros & Developers. It's quick & easy.

problem with localizable controls in dll. It doen't work!!

P: n/a
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
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.