110,534
社区成员
发帖
与我相关
我的任务
分享
lvw.SelectedItems.Clear();
应该是你要的结果吧public Form1()
{
InitializeComponent();
textBox1.LostFocus+=new EventHandler(textBox1_LostFocus);
}
void textBox1_LostFocus(object sender, EventArgs e)
{
textBox1.Focus();
}
private void textBox1_Leave(object sender, EventArgs e)
{
textBox1.Focus();
}