Results 1 to 7 of 7

Thread: Progress Bar and Background Worker Question

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2007
    Location
    Brunei Darussalam
    Posts
    50

    Progress Bar and Background Worker Question

    My program is finished already, and i am using it perfectly. I just want to add
    progressbar so that i can see the progress running to make it more beautiful

    i create an apps which is capable of installing apk file on android phones.
    This is base on ADB command "adb install applcationname.apk"
    we can install apk on command prompt using adb install command

    The scenario of my program is like this:
    all the command on cmd will appear on my form (This is all OKey)

    the apk's name is on my listbox1, if I select the items on listbox1, the name of this item will be written on my txtCommandInput (my textbox)

    this is my sample codes
    Code:
     Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
            Dim _items As String = ListBox1.Text
            Dim _adb As String = "Adb install"
            Dim myspace As Object = Space(1)
            If ListBox1.Text = ListBox1.Text Then
                txtCommandInput.Text = _adb & myspace + _items
            End If
        End Sub


    Code:
        Private Sub InstallButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InstallButton.Click
            StreamInput(Me.txtCommandInput.Text)
            Me.txtCommandInput.Clear()
        End Sub
    if you press the button it will throw the command from txtCommandInput.Text and the result will displayed on cmd, so the "adb install command" will run.
    all of this thing is working fine, except the progressbar

    Now im reading this book about progressbar and backgroundworker sad to say i really cannot make it work, that while the installation of this apk the progressbar value is exactly 100% after the installtion finished

    can anyone please enlighten me about this thing?
    Just give me a hint how the progress on progressbar will be the exact value and result of this apk installation

    thanks in advance
    Last edited by eyestrain; Jun 25th, 2012 at 06:22 AM.

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