Click here to Skip to main content
14,865,088 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i m developing window application using c#.i m created few textbox dynamically. and add textchanged event handler of those dynamically created textbox.

but eventhandler not working properly.
for ex

when i m pressing any int number to that textbox.
i want ten times of that input no.
like if i input 90,55.
answer should be 900,550 respectively.

but the same is not happening

if i inputing 9 i get 90, but after inputing 0 after 9 ,ans is not changed.i m getting same 90.

what should be the prblm?
can anyone help me.
THANKS IN ADVANCE!
Posted
Comments
BillWoodruff 28-Oct-13 2:41am
   
Without seeing what you are doing in code, I can't help you.

Why don't you try to do it in the LostFocus event?

If you're recalculating the value every time that the text changes, it can can become irresponsible because can enter in an infinite loop!
   
int number does not handle floating point values

90,55 is a floating point value - try using a double

Regards
Espen Harlinn
   
><code>
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900