|
-
Dec 10th, 2009, 06:08 PM
#1
Thread Starter
New Member
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
-
Dec 10th, 2009, 06:10 PM
#2
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.
-
Dec 10th, 2009, 06:55 PM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|