• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

Localize MS common dialog controls

Hello
When using common dialog control in VB, the interface is showed in windows default language.

Suppose I'm using windows with Arabic support, but I need to use common control and be able to control the language they are displayed in, is there any way to do it ?

The problem is when I switch to arabic via CONTROL PANEL and make arabic the default language, then I've got these common dialogs in arabic.

1-What I need is to call them without changing default language ?
(pass the desired language as parameter, for example)

2-the same problem apprear in LoadResString in VB, it always follows the default language, is there another way to pass the desired language as parameter ???

PS: otherwise we have to write our own code to replace lots of important dialogs like :
ShowOpen, showprinter, showsave ...etc.

Thanks,
Gaby.
gaby@alpha.com.lb
0
GabyNHADDAD
Asked:
GabyNHADDAD
1 Solution
 
glass_cookieCommented:
Hi!

As much as I know, there is no section/properties in Common dialog that allows you to change the language of the control.

Maybe commondialog would turn out Arabic with the windows support.  If not... it's just too bad.

Aha!  I've got another idea, but it's only superficial (but wouldn't the title bar suffice?):

Change the title bar of the commondialog control using this code:

Download...
http://www.vb-helper.com/Howto/setcap.zip
Description: Set another application's caption (3K)

Hope it helps!

That's it!

glass cookie :)
0
 
GabyNHADDADAuthor Commented:
thanks for Ark and for glass cookie
0
 
DanRollinsCommented:
Moderator, my recommended disposition is:

    Split points between: glass_cookie and Ark

DanRollins -- EE database cleanup volunteer
0
 
Computer101Commented:
Points reduced for split and comment accepted as answer.  The other expert can look for their question in this topic area

Computter101
E-E Moderator
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now