Solved

Form Suspention

Posted on 2002-07-15
12
187 Views
Last Modified: 2010-05-02
i have Aform that copy files form CD-ROM to hard disk, what i want is to view the Tracking of Copied files in Alabel in my form , the code is working correctly but the label seemed to be like white rectangle and no view on it .
0
Comment
Question by:mhdahd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +3
12 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7153621
Do you use Doevents after changing the label's caption?!

CHeers
0
 

Author Comment

by:mhdahd
ID: 7153624
no i dont
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7153626
Then try that, it should work...
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:mhdahd
ID: 7153630
realy i am newly wuth visual basic can you tell me how to do this
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7153636
after the code line that updates the caption of the label, write 1 line with doevents, which will make your form will repaint as necessary.

yourlabel.caption = "45%"
Doevents

You could also only issue the repaint of the label:
yourlabel.caption = "45%"
yourlabel.refresh

CHeers


0
 

Author Comment

by:mhdahd
ID: 7153684
still the problex exist.
i use filesystemobject ti itrate through the folder
and use copyfolder method to copy all files , after that i use the following code :-
  for each file in subfolr.files
Do event
mylabel.caption = file.name  
mylabel.refresh
next
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 100 total points
ID: 7153687
should your code not read like this:

for each file in subfolr.files
  mylabel.caption = file.name  
  mylabel.refresh
  file.copy "<destinationfolder>"
next

CHeers
0
 
LVL 51

Expert Comment

by:Ryan Chong
ID: 7153688
See this if you want to display the status of the progress:

Creating a Custom PhotoShop-Style ProgressBar:
http://www.mvps.org/vbnet/code/forms/psflood.htm
0
 
LVL 51

Expert Comment

by:Ryan Chong
ID: 7153690
Do event

should be

DoEvents..
0
 
LVL 3

Expert Comment

by:PNJ
ID: 7154414
OK, all the other comments are good, but just check that the foreground colour and background colours of the label are different. Make sure you're not printing white text on a white background! ...just a thought :)
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8012190
Hi mhdahd,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept angelIII's comment(s) as an answer.

mhdahd, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 8095572
Comment from expert accepted as answer

Computer101
E-E Admin
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question