The provided code will disable/enable a textbox on button click.
All you have to do is swap cboaccount1 with your combo box and it will work.
private void button2_Click(object sender, EventArgs e)
{
cboaccount1.Enabled = cboaccount1.Enabled ? false : true;
}