1
Good evening, I have 3 textbox, and I would like someone to provide a code to help me, when I select the product on the grid the total value is added in textbox1, and so on, the more I add products , plus it adds up, well ... I would like a code that when typing the value received in the textbox2 , already appeared the change in textbox3, I do not know if I would have to use a keypress or something like that, so I need help.
Don’t just take the value of the textbox
Valor total
and decrease the textbox ofvalor recebido
and play in the textboxTroco
? You can use the eventTextChanged
to perform the calculation every time the user changes the value, or the eventKeyDown
, type user pressesenter
and performs the calculation. or can do when it loses focus of thetextbox
calculate.– MeuChapeu
Yes, but could you pass me the code ? I am a novice in c# I would have to be clearer so that I understand, if I can post a code I would like .
– Rennan Hanna
I enjoyed the keydown event, how can I do it ?
– Rennan Hanna
From a read on this link in the part where it says creating an event handler.
– MeuChapeu