you can make any button enable or disable by making button.enabled = false / true; Is this you r looking for
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)