Click here to Skip to main content
16,021,430 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have multiple textbox in winform application(VB.Net2003) with some calculation like 1 * 10 =10. when i enter the numberic values in text box as very fast (ie 12,16 any), But i getting only first digit of value 1 (correct output is 20 but i'm getting only 10). The value 2 is not calculate So, how to rectify this problem.

Textchanged event to be used....

Thanks in advance.
Posted
Updated 18-Apr-12 1:53am
v2

Hi,
The reason is that Textchanged event will be fired after every change in the control.

Cheers
 
Share this answer
 
Hi,
Instead of TextChange Event, Try LostFocus Event. because this event will fire after the cursor or control came out of the textbox, so that you may not lose any digits.
check this link

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.lostfocus.aspx[^]

hope it works.
 
Share this answer
 
Comments
durai.net 18-Apr-12 8:27am    
using only textchanged event becz...when user enter the value in text box then automatically change in amount in lable box. so, this is scenario not in use lostfocus event..

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



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