Click to See Complete Forum and Search --> : PROGRESS METER


andy symmons
August 22nd, 2001, 04:54 AM
I HAVE THIS CODE TO COPY ONE FILE TO ANOTHER DIRECTORY AND WOULD LIKE TO ADD A PROGRESS METER TO MY FOM BUT I DONT KNOW HOW OR WHAT CODE I SHOULD USE FOR IT.
private Sub Form_Load()
Label1.Caption = "Internal Database Backup Program"
Command1.Caption = "Backup Now"
Form1.BackColor = vbBlue
Label1.ForeColor = vbRed
Label1.FontSize = 12
Label1.FontBold = true
End Sub
private Sub command1_click()
Dim stSource as string
Dim stDest as string

stSource = "\\Markii\shared\Access files\Registers\ANDY DATABASE\Secure Secure CUSTOMER.mdb"
stDest = "C:\my documents\database back-up\secure secure customer.mdb"

FileCopy stSource, stDest
End Sub



I WOULD LIKE TO BE ABLE TO SEE A PROGRESS METER FOR WHEN THE PROGRAM IS RUNNING. I AM VERY NEW TO VB AND AM TRYING TO TEACH MYSELF AS MY COMPANY ARE NOT INTERESTED IN HELPING ME WITH TRAINING SO ANY HELP WOULD BE USEFUL

Thanks in advance for any help in this matter

Alejandro Ochoa
August 22nd, 2001, 08:32 AM
Go to this link http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vb&Number=58366&page=15&view=collapsed&sb=5 the code posted here works fine, it shows the Windows default copy animation (the flying folder with the progress meter).

Hope this help.

Ghost308
August 22nd, 2001, 08:34 AM
Here is some sweet code that Iouri posted a while back, please give Iouri many points if it works out!

http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vb&Number=58366&page=&view=&sb=

hoa01206
August 22nd, 2001, 05:36 PM
I do not see the animtion when I run this code. The copy and everything else works fine.

Thanks
Hisham