Community discussion forum

Update textbox text dymanically

  • 11 months ago
    I am looking for a way to dynamically update a textbox when a variable/database entry changes. My problem is that I have 120+ textboxes based on combinations of 13 data points. To be specific, these points are bid/ask for different future contracts. My code handles event notifications when any of the futures bid/ask changes and I can update a database or just a variable in the code, this is no problem. My problem is that I want the textbox text to "point" to the combination of these and update as the points change. Currently I only have a couple of ideas, though I do not think any of them are appropriate due to latency: 1) On the notification loop through all the textbox references to see if it contains one of the changed variables and change it (convoluted if all 13 are changing) 2) Create a thread for each future to do the above (again convoluted and will have to lock the textbox while I check and could cause backlogs making it just as inefficient) Many thanks in advance.
    Post was edited on 17/12/2008 11:20:28 Report abuse

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback