I have heard there is a way to stop a text box from updating, in order to speed up code for instance if you concatenate the textbox.text in a loop. Could anyone tell me how? I dont think theres an update property or anything...
Printable View
I have heard there is a way to stop a text box from updating, in order to speed up code for instance if you concatenate the textbox.text in a loop. Could anyone tell me how? I dont think theres an update property or anything...
You can use a String variable to concat the text and then assign it to a textbox. ;)
.
I suppose, but isnt the text in the textbox also stored in a standard string variable? All i need is to shut off its update for a while. Is that possible?
I don't think it's possible, with the Text property of the control. You see, the property change event gets fired everytime, which is invisible to you and me. So, you can't CancelUpdate, like you would do in case the control was bound to something.Quote:
Originally posted by nishantp
I suppose, but isnt the text in the textbox also stored in a standard string variable? All i need is to shut off its update for a while. Is that possible?
.
You could just change the .Locked property of the textbox to prevent updates for awhile.
That would only work for user-input.
.
Yeah, well I figured that was all he was trying to prevent. If he is trying to stop some of his own code from going into the textbox, that should hardly be a problem he needs to ask help on, he just wouldn't do it...
So, what is the problem then? Is a locked change sufficient nishantp?
what do wanna achieve pal ???