You are going about this a very roundabout way: if you want the UserControl to affect items in it's containing form, then the right way to do it is to have it raise an event which the form handles, uses the
sender
properties to get the info it needs, and then deals with the actual control on the form.
So you click the label, the click handler raises an event HideMePlease, the form handles that and does the work.
See here:
Transferring information between two forms, Part 2: Child to Parent[
^] - it's based around forms, but the code is exactly the same for a Control (because a Form is derived from Control).
And the more modern way to handle the
sender
would be:
private void Label_in_MouseClick(object sender, MouseEventArgs e)
{
if (sender is Label labelClicked)
{
... use lableClicked here ...
}
}