Results 1 to 2 of 2

Thread: progressbar help

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2011
    Posts
    467

    progressbar help

    Hi, how do u find out if the progress bar is completed ?

    I need to run a script as soon as the progress bar has been completed

    its ProgressBar1

    and once its been completed i want it to do

    TextBox1.text = "this is a test"

    Thanks for any help

  2. #2
    Addicted Member
    Join Date
    Aug 2010
    Posts
    164

    Re: progressbar help

    Is this what you're looking for?

    Code:
    Private Delegate Sub UpdateTextDelegate()
    Code:
    Dim t as new Thread(AddressOf ProgressBarCheck)
    t.Start()
    Code:
    Private Sub ProgressBarCheck()
    Do
    Thread.sleep(1000)
    If ProgressBar1.Value = ProgressBar1.Maximum Then
    Invoke(New UpdateTextDelegate(AddressOf UpdateText))
    Exit Do
    End If
    Loop
    End Sub
    
    Private Sub UpdateText()
    Textbox1.text = "this is a test"
    End Sub
    Last edited by acrym; Aug 9th, 2011 at 10:19 PM.

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