/// <summary> /// 设置Label的值 /// </summary> /// <param name="label">label</param> /// <param name="value"></param> private void SetLabelValue(Label label, string value) { tableLayoutPanel3.SuspendLayout(); this.Invoke(new Action(() => { label.Width = 200; label.Text = value; label.Refresh(); })); tableLayoutPanel3.ResumeLayout(false); }
文章评论