来一小段代码:namespace Server
{
    public partial class one1 : Form
    {
        public one1()
        {
            InitializeComponent();
        }        private void button1_Click(object sender, EventArgs e)
        {
            two2 t2 = new two2();
            t2.bevent += new two2.billhadll(setvalue);
            if (t2.ShowDialog() == DialogResult.OK)
            {
                
            }
        }
        private void setvalue()
        {
            this.label1.Text = "结账成功!";
        }
    }
}namespace Server
{
    public partial class two2 : Form
    {
        public delegate void billhadll();
        public event billhadll bevent;
        public two2()
        {
            InitializeComponent();
        }        public void button1_Click(object sender, EventArgs e)
        {
            if (bevent != null)
            {
                bevent();
            }
        }
    }
}