As a secondary function on a button or element? For example:
private void Bnt1_Click(object sender, EventArgs e)
{
}
private void Bnt2_Click(object sender, EventArgs e)
{
bnt.Enabled = false;
}
In this code, when you click Bnt2 the first button is disabled, such as clicking Bnt2 again to make Bnt1 active again.
Ps: If something was not clear, let me know and I'll change it.
Ps2: The secondary function refers to the part of the conditional, "snag".