Results 1 to 2 of 2

Thread: Alt+shift

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Egypt
    Posts
    179

    Alt+shift

    Hello,
    As you know with some Windows Systems that support more than one language you can change between languages by pressing ALT+SHIFT.

    How can I do this by VB?

    Thanks

  2. #2
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    You need the API call SetThreadLocale -
    VB Code:
    1. Public Declare Function SetThreadLocale Lib "kernel32" (ByVal Locale As Long) As Long

    i.e. to set it to US English:

    VB Code:
    1. Call SetThreadLocale(1003)

    The attached code demonstartes this and all the other keyboard/locale related functions

    HTH,
    Duncan
    Attached Files Attached Files
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width