Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Refresh problems

Status
Not open for further replies.

impulse24

IS-IT--Management
Jul 13, 2001
167
US
Hi,

I have a form with a single command button, and a label. When the user clicks the command button, a loop is run against a directory of files, renaming the files. Within the loop I have change the label caption to match the filename, and perform label.refresh. This is working as each file is renamed the label caption is updated. If I minimize the form, or click on another window the label caption does not get updated any more, even though I have a form.refresh in the form.activate method.

What am I doing wrong, how do i get the label to continue to refresh even if I leave the form, and come back to it. Please help. Thanks
 
Try this, after the line that says..
Label1.Caption = "c:\blah" insert a DoEvents like so..

Label1.Caption = "c:\blah"
DoEvents
 

impulse24, have you read the FAQ222-2244??? Especially item 15??? I really think you should read this FAQ222-2244 because it seems that you use this site as a support site versus an interactive forum for sharing knowledge. I mean with only 23 replies to the 81 threads you have started, and not to mention, but only 2 out of those 81??? And did you even search this site before posting??? If you would have searched for the keywords of "refresh controls loop" in your forums I know of at least 2 or 3 threads that would have given you some information on how to solve your problem.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top