'Get instance of control whose event I am in
Is there a way to get an instance of the control whose event I am in?
private void TextBox1_TextChanged(object sender, EventArgs e)
{
TextBox1.Text = "hi";
ThisControl.Text = "hi";
}
Sort of so that these two lines would do the same thing? Like the "This" keyword but for the event control rather than the class.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
