I have this form class
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, System.EventArgs e)
{
//This is where I'm working
}
}
from inside the button1_Click method how can I access other elements on the form?
I tried to do this
private void button1_Click(object sender, System.EventArgs e)
{
statusStrip1.Text = "You pressed the button.";
}
But that is not working. In PHP I would use $this->otherObject = 'text';.