首页上一页 1 下一页尾页 1 条记录 1/1页
C#的窗体应用
发表在C#图书答疑
2012-12-13
是否精华
是
否
版块置顶:
是
否
编程环境:Microsoft Visual Studio 2010
程序清单
//****程序清单start
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace 串口1
{
public partial class Form1 : Form
{
//string data;
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = "aaaaaaaaaa";
}
private void button1_Click(object sender, EventArgs e)
{
textBox2.Text = "bbbbbbbbbb";
}
private void Form1_Load(object sender, EventArgs e)
{
textBox2.Text = "cccccccccc";
}
}
}
//****程序清单end
其中的“button2_Click”得不到执行。不知何故,请指教。
程序清单
//****程序清单start
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace 串口1
{
public partial class Form1 : Form
{
//string data;
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = "aaaaaaaaaa";
}
private void button1_Click(object sender, EventArgs e)
{
textBox2.Text = "bbbbbbbbbb";
}
private void Form1_Load(object sender, EventArgs e)
{
textBox2.Text = "cccccccccc";
}
}
}
//****程序清单end
其中的“button2_Click”得不到执行。不知何故,请指教。