1
SoftInputPanel
,軟輸入面板或SIP
是在Windows Mobile設備上顯示的屏幕鍵盤上的。如何檢測/控制SoftInputPanel?
如何檢測有人點擊SIP
?
如何以編程方式啓用/禁用SIP
?
SoftInputPanel
,軟輸入面板或SIP
是在Windows Mobile設備上顯示的屏幕鍵盤上的。如何檢測/控制SoftInputPanel?
如何檢測有人點擊SIP
?
如何以編程方式啓用/禁用SIP
?
沒關係。
找到一篇不錯的文章>> HERE <<。
基本上包括using Microsoft.WindowsCE.Forms;
和P/Invoke
:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.WindowsCE.Forms;
using System.Runtime.InteropServices;
namespace Test1 {
public class Form1 : Form {
[DllImport("coredll.dll")]
public static extern bool SipShowIM(int dwFlag);
InputPanel sip;
public Form1() {
InitializeComponent();
sip = new InputPanel();
sip.EnabledChanged += new EventHandler(SIP_EnabledChanged);
}
void SIP_EnabledChanged(object sender, EventArgs e) {
if (sip.Enabled) {
Console.WriteLine("Enabled");
} else {
Console.WriteLine("Disabled");
}
}
}
}