这么做没必要啊 ,如果一定要的话,可以参考下面的代码: private void button1_Click(object sender, EventArgs e) { PaintEventArgs temp= new PaintEventArgs(label1.CreateGraphics(), new Rectangle(0,0,label1.Width,label1.Height)); label1_Paint(sender, temp); } private void label1_Paint(object sender, PaintEventArgs e) { MessageBox.Show("a"); }
确实没必要...直接label1.Refresh()就行