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
 
Back
Top