Página 1 de 1
Textbox só faz o calculo de teclar
Enviado: 20 Mai 2019 às 11:00
por Admilton
Olá
tenho 4 textbox, exemplo:
textbox4 = textbox1 * textbox2 * textbox3
na textbox4 só faz o calculo se teclar qualquer nela, gostaria que fosse automático, como faço?
Re: Textbox só faz o calculo de teclar
Enviado: 20 Mai 2019 às 11:27
por babdallas
No evento change dos textbox1, 2 e 3, calcule novamente o valor da textbox4.
Textbox só faz o cálculo se eu teclar algum carácter
Enviado: 20 Mai 2019 às 11:36
por Admilton
Olá
Tenho: textbox4 = textbox1 * textbox2 * textbox3
para o resultado aparecer na textbox4 eu tenho que teclar algum carácter na textbox4
como faço para deixar automático?
Textbox só faz o calculo de teclar
Enviado: 20 Mai 2019 às 11:49
por Admilton
Private Sub TextBox4_Change()
TextBox4.Text = TextBox1.Text * TextBox2.Text * TextBox3.Text
end sub
Textbox só faz o calculo de teclar
Enviado: 20 Mai 2019 às 11:52
por Admilton
meu comando é este, mas só calcula na textbox4 quando teclo algum caracter
Re: Textbox só faz o calculo de teclar
Enviado: 20 Mai 2019 às 11:57
por Admilton
babdallas escreveu:No evento change dos textbox1, 2 e 3, calcule novamente o valor da textbox4.
pode dar um exemplo pratico, exemplificar?
Re: Textbox só faz o calculo de teclar
Enviado: 20 Mai 2019 às 12:27
por babdallas
Ex:
Código: Selecionar todosPrivate Sub TextBox1_Change()
TextBox4.Text = TextBox1.Text * TextBox2.Text * TextBox3.Text
end sub
Private Sub TextBox2_Change()
TextBox4.Text = TextBox1.Text * TextBox2.Text * TextBox3.Text
end sub
Private Sub TextBox3_Change()
TextBox4.Text = TextBox1.Text * TextBox2.Text * TextBox3.Text
end sub
Textbox só faz o cálculo se eu teclar algum carácter
Enviado: 21 Mai 2019 às 09:59
por Reinaldo