在编写全屏应用程序时,为了充分利用屏幕空间,将输入法面板取消。但是没有输入法面板,怎么进行输入,如何设定输入面板显示的位置呢?其中一种可行的方法是进行P/Invoke调用,在程序中调用输入法,界面效果图如下:

windows mobile下调用输入法并改变输入面板位置

    代码如下所示:

windows mobile下调用输入法并改变输入面板位置using System;
windows mobile下调用输入法并改变输入面板位置
using System.ComponentModel;
windows mobile下调用输入法并改变输入面板位置
using System.Drawing;
windows mobile下调用输入法并改变输入面板位置
using System.Windows.Forms;
windows mobile下调用输入法并改变输入面板位置
using System.Runtime.InteropServices;
windows mobile下调用输入法并改变输入面板位置
windows mobile下调用输入法并改变输入面板位置
namespace SmartDeviceProject1
}
  更多内容,请参考Alex Gusev的文章:Managing the Software Input Panel in Your Applications

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2021-12-10
  • 2021-07-17
  • 2021-04-24
  • 2021-12-13
  • 2021-10-03
  • 2021-09-25
猜你喜欢
  • 2022-03-03
  • 2021-07-05
  • 2021-12-23
  • 2021-12-03
  • 2022-12-23
  • 2021-09-02
  • 2021-06-17
相关资源
相似解决方案