I have a code in VB but i want it in C#
the code is:
' Prototype UI
Public Declare Function LoadKeyboardLayout Lib
"USER32" Alias "LoadKeyboardLayoutA" (ByVal pwszKLID
As String, ByVal Flags As Long) As Long
Public Const Switch2En = "00000409"
Public Const Switch2Fa2000 = "00000429"
Public Sub Switch(ByVal strSwitch As String)
' Prototype UI
strSwitch = UCase(strSwitch)
If strSwitch = "EN" Then
LoadKeyboardLayout(Switch2En, 1)
ElseIf strSwitch = "FA" Then
LoadKeyboardLayout(Switch2Fa2000, 1)
End If
End Sub
I have a code in VB but i want it in C#?
try this
http://www.carlosag.net/Tools/CodeTransl...
hope it works...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment