
| ||||||||||||||||||||||||
| Comfort Software :: Forum :: Development | |||
|
|||
|
| Autore | Messaggio |
| Comfort |
| ||
![]() ![]() ![]() Registrato il: Wed Sep 19 2007, 03:42PM messaggi: 617 | I cannot write example for C#. Maybe somebody else? Here is 2 main functions from WinAPI:
You can find description of these functions in help. ------------------- For example, for Visual Basic it looks like this: Private Const WM_CSKEYBOARD = WM_USER + 192 Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long ‘Code to show keyboard Dim hWnd As Long hWnd = FindWindow(“TFirstForm”, “CKeyboardFirstForm”) PostMessage hWnd, WM_CSKEYBOARD, 1, 0 ‘Code to close keyboard Dim hWnd As Long hWnd = FindWindow(“TFirstForm”, “CKeyboardFirstForm”) PostMessage hWnd, WM_CSKEYBOARD, 2, 0 ------------------- Have a nice day | ||
| Torna ad inizio pagina |
| Moderatori: Comfort |