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
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.
Re: Label disappears during input/output
Bingo. Right on! Problem solved. Thanks LaVolpe. Hope Santa was watching.
VBhobbyist