2011-09-12 9 views

答えて

0

私は同様の質問hereに答えましたが、Windows Mobile 6.5用でした。しかし、私は、それ以下は...あまりにも勝利7上で動作すると思いキーボードアイコンを非表示にするコードは次のとおりです。

//Declare Win API method 
[DllImport("coredll.dll", EntryPoint="FindWindowW", SetLastError=true)] 
private static extern IntPtr FindWindow(string lpClassName, string lpWindowName) 

[DllImport("coredll.dll", SetLastError=true)] 
[return: MarshalAs(UnmanagedType.Bool)] 
private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uint uFlags); 

[DllImport("coredll.dll", SetLastError = true)] 
    internal static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint); 

//Call FindWindow and SetWindowPos to hide keyboard icon 
IntPtr hWnd = FindWindow(Nothing, "MS_SIPBUTTON"); 
SetWindowPos(hWnd, 1, 0, 0, 0, 0, &H80); 
0

は私の答えhereを参照してください。レジストリ値を設定することで、特定のアプリケーションのオンスクリーンキーボードサムネイルを無効にすることができます。

0

特定の方法の後で仮想キーボードを非表示にするには、this.Focus();

関連する問題