如果就是这么几行信息,用 MessageBox.Show() 即可
在里面加上\n就可以换行
如果要自己做一个窗口,可以利用构造函数传参数
Form2的代码加上
public Form2(string s)
{
this.Label1.Text = s;
}
在窗口1的按钮上加上
Form2 f2 = new Form2(你要显示的字符串);
f2.Show();
将准备弹出的窗口比如Form2.Designer.cs中的Label的定义由
private System.Windows.Forms.Label labInfo;
改为
public System.Windows.Forms.Label labInfo;
然后在主窗口
Form2 fm2=new Form2();
fm2.labInfo.Text=主窗口刚输入的值
fm2.Show();