Forum


Comfort Software :: Forum :: Development
<< Discussione precedente | Discussione successiva >>   


Autore Messaggio
Kevin
Tue Jan 08 2008, 01:58PM
Utenti Registrati #42
Registrato il: Tue Jan 08 2008, 11:41AM
messaggi: 2
Thanks for your quick reply ... you got me headed in the right direction.

Here is the code in C# (almost exactly as you describe in VB)

public const Int32 WM_USER = 1024;
public const Int32 WM_CSKEYBOARD = WM_USER + 192;

[DllImport("user32.dll", EntryPoint = "FindWindow")]
private static extern Int32 FindWindow(string _ClassName, string _WindowName);

[DllImport("User32.DLL")]
public static extern Boolean PostMessage(Int32 hWnd, Int32 Msg, Int32 wParam, Int32 lParam);


Int32 hWnd = FindWindow("TFirstForm", "CKeyboardFirstForm");
PostMessage(hWnd, WM_CSKEYBOARD, 1, 0 ); // Show
PostMessage(hWnd, WM_CSKEYBOARD, 2, 0); // Hide


Now that I have that working... I've got a couple more questions -

1 - Is there a way to position the keyboard without any user intervention? Would i do this through an API call? I kind a new at the API interface - please bare with me.

2- Is there a way to disable/hide/remove the close and autohide icons?

Thank You - you have been most helpful!
Torna ad inizio pagina
Moderatori: Comfort

Salta:     Torna ad inizio pagina

Syndicate questa discussione: rss 0.92 Syndicate questa discussione: rss 2.0 Syndicate questa discussione: RDF
Powered by e107 Forum System