如下图所示,目前是当窗体中的文本框获取焦点后将 自定义虚拟软键盘(keyboard.xaml) 通过keyboard.show() 显示出来,但是文本框获取不到通过虚拟软键盘输入的值,反而是电脑上任意一个软件中能输入文本值的地方,都可以通过这个弹出的软件盘进行字符输入,求教高手支招!谢谢
解决方案 »
- 随机生成数存入SQL Server数据库
- 谁能解释一下内网IP和外网IP
- gridview绑定数据源,数据源是一个用存储过程select出来的结果,如何做
- 求listview分页源代码~
- GridView中删除事件,弹出确认对话框,点击确认执行后编代码,点击取消则返回
- C# 由csv文件向sql中导入数据算法问题
- Pdf文件操作
- 初学VC++,有好书推荐吗?我工作经验一年,本是搞C#的,现在经理叫我选择以后做C#或VC,请老手给点建议!
- 求一XPath写法
- 没想到这样会对SQLSever服务器的影响相差这么远!!!
- 绝对新颖的问题,各位大神进来,C#如何的webbrowser控件如何做到firebug选取元素效果并且取到该元素
- Revit二开 winform中的按钮实现载入族命令
public static extern int GetWindowLong(IntPtr hWnd, int nIdex); [DllImport("User32.dll")]
public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong); [DllImport("User32.dll")]
public static extern void keybd_event(byte bVK, byte bScan, Int32 dwFlags, int dwExtraInfo); [DllImport("User32.dll")]
public static extern uint MapVirtualKey(uint uCode, uint uMapType); [DllImport("user32.dll", EntryPoint = "GetKeyboardState")]
public static extern int GetKeyboardState(byte[] pbKeyState);
public static bool CapsLockStatus
{
get
{
byte[] bs = new byte[256];
GetKeyboardState(bs);
return (bs[0x14] == 1);
}
} public struct GUITHREADINFO
{
public int cbSize;
public int flags;
public int hwndActive;
public int hwndFocus;
public int hwndCapture;
public int hwndMenuOwner;
public int hwndMoveSize;
public int hwndCaret;
public System.Drawing.Rectangle rcCaret;
}
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetGUIThreadInfo(uint idThread, ref GUITHREADINFO lpgui); [DllImport("user32")]
public static extern IntPtr GetForegroundWindow(); [DllImport("user32", SetLastError = true)]
public static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId);
hello,请问你解决这个问题了吗?