M
makai
Guest
OK - I put a label on a form in C# - then I added this code (the event code was added automatically simply by clicking the label in the designer) I just added label1.text = "test";:
private void label1_Click(object sender, System.EventArgs e)
{
label1.text = "test";
}
incredibly the project will not build - it underlines label1.text and says:
System.Windows.Forms.Control.text is inaccessible due to its protection level.
can someone tell me what is going on and how to make it work?
private void label1_Click(object sender, System.EventArgs e)
{
label1.text = "test";
}
incredibly the project will not build - it underlines label1.text and says:
System.Windows.Forms.Control.text is inaccessible due to its protection level.
can someone tell me what is going on and how to make it work?