这个问题,研究了将近两个小时,baidu,google,好大一会,windows 平板自己的应用程序,必须浏览器,notepad都是能够自动唤起软键盘的,可是个人winfrom 程序就是不能够,起先怀疑是个人程序问题,我从新写了一个test 程序,发现依旧是不能唤醒。网上也发现不少网友都有这个问题,可是也没说个什么解决办法。最终,最终,找到一篇帖子,https://stackoverflow.com/questions/36179917/automatically-pop-up-tablet-touch-keyboard-on-winforms-input-focuswindows
-
Insert a reference to UIAutomationClient.dll to your project浏览器
-
In the form-load-handler of the application's main window, insert the following code
appvar asForm = System.Windows.Automation.AutomationElement.FromHandle(this.Handle);