Results 1 to 3 of 3

Thread: Label disappears during input/output

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2009
    Posts
    2

    Label disappears during input/output

    Can someone tell me why a Label disappears while reading or writing a file? The label's .Visible property is set True at design time and not altered by the program. The label appears before and after the i/o operations, which are lengthy. I set break points immediately after assigning a value to the .Caption property and the label is visible, but when I run the program without break points, the label disappears during i/o.

    Although I'm using VB6 Learner's Edition, I'm an experienced programmer, yet I've exhausted my normal techniques to debug this problem.

    Help, please.

    VBhobbyist

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

    Re: Label disappears during input/output

    Welcome to the forums.

    After changing the label's caption try using its .Refresh method. I think it is just a matter of the caption not repainting on the form/container because of other code that runs right after the change.
    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
    New Member
    Join Date
    Dec 2009
    Posts
    2

    Re: Label disappears during input/output

    Bingo. Right on! Problem solved. Thanks LaVolpe. Hope Santa was watching.

    VBhobbyist

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