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

Thread: progress bar

  1. #1
    Join Date
    Apr 2001
    Posts
    17

    progress bar

    Thanks Mr.Duffy for your suggestion. Now that I can See the progress bar it don't work. I want it to show progress of reading a row with 575 columns starting with tha 4th column. Here is what i have for code. as in previous post my knowledge = nothing on progress bars never wanted to use before now and information is limited, except from the people who like to make their own. I wanted bar on seperate form in order to use multiple times

    Option Explicit
    Dim m_intProgressMax As Integer

    ----------------------------
    Private Sub Form_Activate()
    m_intProgressMax = 575

    With tmrProgress
    .Enabled = True
    .Interval = 100
    End With
    End Sub

    ---------------------------------
    Private Sub tmrProgress_Timer()
    Static counter As Integer

    If counter = m_intProgressMax Then
    tmrProgress.Enabled = False
    counter = 0
    prgShowNTell.Visible = False
    Else
    counter = counter + 1
    End If
    End Sub



  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: progress bar

    You haven't incremented the progressbar value.


    Private Sub tmrProgress_Timer()
    Static counter As Integer

    If counter = m_intProgressMax Then
    tmrProgress.Enabled = False
    counter = 0
    prgShowNTell.Visible = False
    Else
    counter = counter + 1
    prgShowNTell.Value = counter 'I am assuming this is your progressbar
    End If
    End Sub


    David Paulson

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