Results 1 to 8 of 8

Thread: Stop TextBox Update

  1. #1

    Thread Starter
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375

    Stop TextBox Update

    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 just proved that sig advertisements work.

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    You can use a String variable to concat the text and then assign it to a textbox.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3

    Thread Starter
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    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 just proved that sig advertisements work.

  4. #4
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    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?
    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.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  5. #5
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    You could just change the .Locked property of the textbox to prevent updates for awhile.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  6. #6
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    That would only work for user-input.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  7. #7
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    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?
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  8. #8
    Addicted Member eanilarora's Avatar
    Join Date
    Aug 2000
    Location
    Malaysia
    Posts
    179
    what do wanna achieve pal ???
    Love, Live, Laugh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width