Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
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?
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?