Foros


Comfort Software :: Foros :: Development
<< Tema anterior | Tema siguiente >>   


Autor Mensaje
Comfort
Tue Jan 08 2008, 01:11PM


Unido: Wed Sep 19 2007, 03:42PM
Mensajes: 617
I cannot write example for C#. Maybe somebody else?
Here is 2 main functions from WinAPI:
  • PostMessage
  • FindWindow

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
Volver arriba
Moderadores: Comfort

Saltar:     Volver arriba

Sindicalizar este hilo: rss 0.92 Sindicalizar este hilo: rss 2.0 Sindicalizar este hilo: RDF
Powered by e107 Forum System