Select your checkbox, click Events and double-click on the:
CheckStateChanged
This will create the event handler. Enter your code inside it. It should look like:
private void checkBox1_CheckStateChanged(object sender, EventArgs e)
{
if(checkbox1.Checked)
{
textbox1.Visible = true;
}
else
{
textbox1.Visible= false;
}
}