Private Declare Function LoadKeyboardLayout Lib "user32" Alias "LoadKeyboardLayoutA" (ByVal pwszKLID As String, ByVal flags As Long) As Long
Private Const KLF_ACTIVATE = &H1 'Used in LoadKeyboardLayout() API function
Private Enum Lang
English
Russian
End Enum
Private Sub SetKeyboardLang(aLang As Integer)
Dim str As String
Dim l As Long
Select Case aLang
Case English
str = "00000409"
Case Russian
str = "00000419"
End Select
l = LoadKeyboardLayout(str, KLF_ACTIVATE)
End Sub
Сейчас этот форум просматривают: SemrushBot и гости: 45