Winforms模拟键盘输入
private void button1_Click(object sender, EventArgs e)
{
this.textBox1.Focus();
//模拟键盘输入字符
SendKeys.Send("300");
//模拟键盘输入Backspace键
//SendKeys.Send("{BACKSPACE}");
SendKeys.Flush();
}
本文来自博客园,作者:重庆熊猫,转载请注明原文链接:https://www.cnblogs.com/cqpanda/p/17000225.html