CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: PROGRESS METER

  1. #1
    Join Date
    Aug 2001
    Location
    Cambridgeshire, England
    Posts
    8

    PROGRESS METER

    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

  2. #2
    Join Date
    May 2001
    Posts
    46

    Re: PROGRESS METER

    Go to this link http://www.codeguru.com/cgi-bin/bbs/...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.



  3. #3
    Join Date
    Jun 2001
    Location
    Memphis, TN
    Posts
    146

    Re: PROGRESS METER

    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/...age=&view=&sb=


  4. #4
    Join Date
    Aug 2001
    Location
    PA
    Posts
    150

    Re: PROGRESS METER

    I do not see the animtion when I run this code. The copy and everything else works fine.

    Thanks
    Hisham
    Thank You, Hisham

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured