How to pass control to a method

public void ChangeProperties(Control ctrl)
{
     ctrl.Enabled = true;
}

and call it like that :

ChangeProperties(btnAcesScore);

No comments:

Post a Comment