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

Thread: Progress bar

  1. #1
    Join Date
    Apr 2001
    Posts
    17

    Progress bar

    I have put a progress bar on seperate form to use as needed. problem is it doesn't show when called and my knowledge of progress bars = nothing, so it don't work. here is code section

    frmProgressShow.Show
    DoEvents
    frmMDISanitation.Hide 'tried to get bar to show
    Do Until intRow >= 575 ' to allow for growth...currently 559
    If Trim(xlRangeList.Cells.Item(intRow, intCol)) = "*" Then

    frmTasks.lstTasksDueThisWeek.AddItem intRow _
    & "." & " " & m_objSheet.Cells.Item(intRow, 1)
    frmTaskStatus.cboTaskView.AddItem intRow _
    & "." & " " & m_objSheet.Cells.Item(intRow, 1)
    intRow = intRow + 1
    frmProgressShow.prgShowNTell.Value = intRow
    DoEvents
    Else
    intRow = intRow + 1
    Debug.Print m_objSheet.Cells(intRow, intCol)
    End If

    Loop
    frmProgressShow.Hide

    thanks for looking or helping!



  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Progress bar

    You are not telling the frmProgressshow to be displayed
    Replace your .Hide with thefollowing:

    frmProgressShow.SHOW ' Show this form
    frmProgressShow.Zorder ' Bring it to the foreground



    This will cause Windows to display your Progress bar form

    John G

  3. #3
    Join Date
    Apr 2001
    Posts
    17

    Re: Progress bar

    I always wondered what zorder did, now i know thank you


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