button1.Enable(false)
var status = falsebutton1.Enable(status)
Note:For a Button object named button1, either of the above example will disable the button