Results 1 to 3 of 3

Thread: [RESOLVED] Form label quits refreshing the caption

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2009
    Posts
    93

    Resolved [RESOLVED] Form label quits refreshing the caption

    I have a process where I am reading records from one db table, as I loop thru the records I am assigning some text and the record number to a label on my form so I can see what record it is on. The issue is that it will randomly quit refreshing the form. It happens at all different spots. Does anyone know why is this happening? I assign lbl1.caption = "sometext" then I do a form.Refresh.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Form label quits refreshing the caption

    Paint messages sent to the form to update the label are low priority and your other processing, probably a loop, is taking priority. After updating the label, try calling its .Refresh method, not the form's.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2009
    Posts
    93

    Re: Form label quits refreshing the caption

    Thanks much. I used combination of label.refresh and form.refresh and it worked. It stopped updating when I just tried to use label.refresh.

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