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 对话框
{
public partial class Form2 : Form
{
public string message;
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
label.Text = message;
}
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
生成一个这样的窗体
(逐语句过程调试)监视窗口显示messagenullstring,这不是会引发编译错误吗,难道在 label.Text = message中的message跟public string message中的message变量时不同的,求解救
慕娘9325324
开满天机
holdtom