Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 2nd, 2006, 10:01 PM
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ysiline Send a message via Yahoo to ysiline
Default Adding Language Keyboad

Do anybody know how to quietly add the Language Keyboad into Regional Setting's Languages section?

Example:

- Default Keyboad is now: English (United state) with English International Keyboad layout.

- Additional : French with Frech Keyboad Layout.... (want to be added silently from our code)

Your kindly help is appreciated.

Thanks,


 
Old April 3rd, 2006, 07:06 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I am not sure if this will work since I don't have time to test it right now. Try this:

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKLM\Software\Microsoft\WindowsNT\CurrentVersion\ WOW\boot.description\keyboard.typ", "keyboard type here"
WshShell.RegWrite "HKLM\Software\Microsoft\WindowsNT\CurrentVersion\ WOW\boot.description\language.dll", "language here"

I am not sure if you would also need to do a "WshShell.RegDelete" to remove a value before you put in a new one. I think these will substitute a new value for whatever is in there.

HTH

mmcdonal
 
Old April 3rd, 2006, 09:03 PM
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ysiline Send a message via Yahoo to ysiline
Default

I got that but can we use only one Keyboard.typ and language.dll set? or if we can add more than one set to that Registry folder?

Thanks,
 
Old April 4th, 2006, 06:19 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I am assuming that you are checking for a certain condition on the system, and then changing the setting with the application. That should not be a problem, but I am not sure if you need to reboot in order for the changes to take effect. If that is the case, then nothing will work, except for character substitution. I am not sure if your system or Access will do nchars.

mmcdonal
 
Old April 19th, 2006, 03:32 PM
Registered User
 
Join Date: Apr 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is a WinAPI that will specify what keyboard layouts are used. You'll have to write a routine to invoke the API on a Windows level whenever you want to switch keyboard layouts in code.

Cheers

AvGuy
 
Old April 19th, 2006, 11:36 PM
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ysiline Send a message via Yahoo to ysiline
Default

AvGuy:
Could you give me a hand in showing me how to work with that?

mmcdonal:
Your code seems to work find, but I still can't add more keyboad to the system...don't know why.

Appreciate you kindly help.






Similar Threads
Thread Thread Starter Forum Replies Last Post
What Language For Me, Now? abrogard Intro Programming 10 April 15th, 2011 11:39 PM
Which language would be best for... GeckOblue925 Intro Programming 4 February 20th, 2007 01:04 AM
Which language to use? SkyBlueshoes Intro Programming 1 March 9th, 2006 08:51 AM
Which language is better? sario777 VS.NET 2002/2003 4 April 17th, 2005 01:35 PM
c language help!!! kernel_zap C# 2 April 29th, 2004 09:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.