日期:2014-05-17 浏览次数:20802 次
namespace WindowsFormsApplication9
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.Show();
}
}
}
namespace WindowsFormsApplication9
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form1.button1.text = "Button1"; //窗体2中单击按钮1如何设置窗体1中按钮1的标题?
}
}
}