Unchecking a radiobox

  • Thread starter Thread starter Daniel Groh
  • Start date Start date
D

Daniel Groh

I'm trying to uncheck a radio through another radio with this command:

private void rdoPessoaJuridica_CheckedChanged(object sender,
System.EventArgs e)
{
rdoPessoaFisica.Visible = false;
}

but, doesn't work, what could it be ?
 
Daniel said:
I'm trying to uncheck a radio through another radio with this command:

private void rdoPessoaJuridica_CheckedChanged(object sender,
System.EventArgs e)
{
rdoPessoaFisica.Visible = false;
}

but, doesn't work, what could it be ?
Well, the Visible property has no relation to the cheked property, this
will just hide the option.

If the radio buttons are in a group (same container) then only one
should be able to be selected at the one time and the checked should
change automagically when one is selected.

Otherwise, use the checked property and set this to false.

JB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top