打开windows mobile的输入模式

using System;
using Microsoft.WindowsCE.Forms;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;


namespace 手机测试程序
{
    public partial class Form1 : Form
    {
        InputPanel m_sip;
        public Form1()
        {
            InitializeComponent();
            m_sip = new InputPanel();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            m_sip.Enabled = true;
            m_sip.CurrentInputMethod = m_sip.InputMethods[0];
        }

        private void button1_Click(object sender, EventArgs e)
        {
            m_sip.Enabled = true;
            m_sip.CurrentInputMethod = m_sip.InputMethods[1];
        }
    }
}

 

记得导入windows ce的引用

posted @ 2008-12-29 15:21  appleseed  阅读(198)  评论(0编辑  收藏  举报