本帖最后由 苟于伟 于 2013-5-10 09:36 编辑
苏老师的有截图(有智能提示)- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Leave(object sender, EventArgs e)
- {
- button1.Text = "失去焦点";
- }
- private void button1_Enter(object sender, EventArgs e)
- {
- button1.Text = "获得焦点";
- }
- private void button2_Click(object sender, EventArgs e)
- {
- txtName.Focus();//这一句出错了
- }
- }
复制代码 这是我的代码,请大神帮我看看。。。。
|
|