Fórum Dúvida enable TREU e False TextBox #441028
25/04/2013
0
if(rbSexo.CanSelect == false)
{
txtNome.Enabled = false;
}
já tentei isso mais sempre ele desativa o textbox e nunca ativa quando clica no RadioButton.
Raniel Gomes
Curtir tópico
+ 0Posts
26/04/2013
Leonardo Carvalho
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
if (radioButton1.Checked)
textBox1.Enabled = true;
else
textBox1.Enabled = false;
}
Gostei + 0
26/04/2013
Joel Rodrigues
private void rbSexo_CheckedChanged(object sender, EventArgs e)
{
txtNome.Enabled = rbSexo.Checked;
}Mas dá no mesmo.
Gostei + 0
26/04/2013
Raniel Gomes
Gostei + 0
02/05/2013
Joel Rodrigues
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)