As a hidden textbox when pressing a radio button?

0

Hi, I want to hide the textbox when I select the radio button called administrative. And when you select a driver, show the textboxs ..

    
asked by Kevin Quevedo 06.11.2018 в 16:50
source

1 answer

1

To hide a text box by means of radio buttons you can use the following

   private void radioButton1_CheckedChanged(object sender, EventArgs e)
    {
        if (radioButton1.Checked)
        {
            txtComentario.Hide();
        }
        else
        {
            txtComentario.Show();
        }
    }

You use the checkedCahnged event of the radio button then ask if it is selected or not and hide and show the text box

    
answered by 06.11.2018 в 16:59