Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何检测/控制SoftInputPanel?_C#_Visual Studio 2008_Windows Mobile_Soft Input Panel - Fatal编程技术网

C# 如何检测/控制SoftInputPanel?

C# 如何检测/控制SoftInputPanel?,c#,visual-studio-2008,windows-mobile,soft-input-panel,C#,Visual Studio 2008,Windows Mobile,Soft Input Panel,SoftInputPanel、Soft Input Panel或SIP是在Windows Mobile设备上显示的屏幕键盘 当有人单击SIP时,如何检测 如何以编程方式启用/禁用SIP 没关系 在这里找到一篇好文章>> using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; usi

SoftInputPanel
、Soft Input Panel或
SIP
是在Windows Mobile设备上显示的屏幕键盘

当有人单击SIP时,如何检测

如何以编程方式启用/禁用
SIP

没关系

在这里找到一篇好文章>>
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");
      }
    }

  }

}