Forums


Comfort Software :: Forums :: Development
<< Previous thread | Next thread >>   


Author Post
Comfort
Tue Jan 08 2008, 01:11pm


Joined: Wed Sep 19 2007, 03:42pm
Posts: 600
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
Back to top
Moderators: Comfort

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System