我最近开始在电网(C#)开展大型项目,我在守则中遇到了一些ug。 最后,我已经跟踪了这一问题,但是,如果可能的话,我希望在确定其位置方面提供援助。 我经常必须使用一种称为“更新倡议”的方法,这将是很大的,但其中任何守则都不会影响《倡议》! 这种方法是公开的,而不是静态的(尽管我已经静态地尝试过这种方法,并用标语提及同样的效果),并且与“Windows Form I”试图更新的同一档案中。 我已经删除了大多数简化法,我刚刚表明,这是为了表明我的声明。 我只想问,我真的不应该把我混为一谈的一点非常简单。
感谢大家阅读,
Richard
public partial class ScanStatus : Form
{
public ScanStatus()
{
InitializeComponent();
label3.Enabled = true;
// Some code. When "label3.Enabled = true" is placed here, it works perfectly.
}
public void UpdateUI()
{
label3.Enabled = true;
// However, the above "label3.Enabled = true" does absolutely nothing, no exception, nothing.
}
}