焦点定位 c#,2个文本框,1个按钮在文本框1的TextChanged事件后,把光标定位到文本框2,在文本框2的TextChanged事件后,把焦点定位到按钮,怎么写? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 winForm 下的还是 WebForm下的? private void textBox1_TextChanged(object sender, EventArgs e) { textBox2.Focus(); } private void textBox2_TextChanged(object sender, EventArgs e) { button1.Focus(); } 用TABINDEX可以不?或者直接FOUCS吧! 不好意思!太弱了!是winform下的!刚才自己看了msdn,已经知道了!谢谢大家! 调整号三个控件的Tab顺序两个TextBox的TextChanged事件都注册为下列方法 private void textBox1_TextChanged(object sender, EventArgs e) { SendKeys.Send("{tab}"); } private void textBox1_TextChanged(object sender, EventArgs e) { textBox2.Focus(); } private void textBox2_TextChanged(object sender, EventArgs e) { button1.Focus(); } 结贴太快 !最后一位没看到,没给分,sorry winform 客户端发起并发连接如何实现? C# webclient下载网页源码问题 急急急急急急急!!!!! socket 监听端口丢包 winform 中,操作dataview问题 winform中关于多窗口切换 开发一个类似于PPlive的软件需要多少人和财力? 100分求静态Session的写法 怎样利用udp协议开发即时通信和视频音频的传输? C#的关于方法修饰符和类的几个问题 TFS的服务器IIS站点被删了 dataGridView 資料輸入的問題 如何得到局域网的IP地址??不是内部地址
private void textBox1_TextChanged(object sender, EventArgs e)
{
textBox2.Focus();
} private void textBox2_TextChanged(object sender, EventArgs e)
{
button1.Focus();
}
或者直接FOUCS吧!
刚才自己看了msdn,已经知道了!
谢谢大家!
两个TextBox的TextChanged事件都注册为下列方法
private void textBox1_TextChanged(object sender, EventArgs e)
{
SendKeys.Send("{tab}");
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
textBox2.Focus();
} private void textBox2_TextChanged(object sender, EventArgs e)
{
button1.Focus();
}