Results 1 to 3 of 3

Thread: Can label display be updated without DoEvents ?

  1. #1

    Thread Starter
    Hyperactive Member Utpal's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai, India
    Posts
    393

    Can label display be updated without DoEvents ?

    Hi everybody,
    When a label's caption is changed rapidly many times through a procedure, only the last text updated is displayed, unless DoEvents is executed after each change. But DoEvents updates not only the caption's display, but also the display of the other controls. Can only the caption of the label be updated after each change and not the other controls ?
    It is easy when you know it.

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    You can do

    Label1.Caption="jdkfjdkfjdkfjdfjdkfjdkfjdkfj"
    Label1.Refresh

    to refresh the caption of the label without doing a DoEvents.
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  3. #3

    Thread Starter
    Hyperactive Member Utpal's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai, India
    Posts
    393
    Thanks Buzby !
    It is easy when you know it.

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