I have 3 textboxes on my form, TB1, TB2 and TB3.
TB1 & TB2 are constantly being updated with new data as fast as it is received.
TB3 is used to show the difference between TB1 & TB2. I convert the text from both TB1 & TB2 to double, perform the subtraction, and then convert the result back to string and display it in TB3.
The problem is that the subtraction works only if either TB1 or TB2 holds constant data, i.e. not changing. If both of them are changing and displaying new data, the code crashes giving me an event handler error.
Can anyone please guide me as to what could the error be?
TB1 & TB2 are constantly being updated with new data as fast as it is received.
TB3 is used to show the difference between TB1 & TB2. I convert the text from both TB1 & TB2 to double, perform the subtraction, and then convert the result back to string and display it in TB3.
The problem is that the subtraction works only if either TB1 or TB2 holds constant data, i.e. not changing. If both of them are changing and displaying new data, the code crashes giving me an event handler error.
Can anyone please guide me as to what could the error be?
Comment