Quantcast
Channel: sharpcompress Discussions Rss Feed
Viewing all articles
Browse latest Browse all 239

New Post: VB Non-responsive app when loading

$
0
0
Ok so, I dont know if this is the right area first of all... But ill give it a shot.

Pretty much, as VB does, when a thread/function is in the process of being operated, the program becomes unresponsive (you cant do anything till that function is done executing)

This is a problem for me...

What I am trying to do is: When the form loads, it will launch a timer, on the timers event, what it should be doing is, displaying in a label what item it is currently in the process of unzipping, then after it is done, check that item off in the checkedlistbox below.

What is happening is: When the form loads, it ill launch the timer, and on the timers event, it will display the current item being unzipped, and when that item is done, check it off on the checklistbox below, however you CANNOT see any of this happen, until it is done executing the code, it is only done executing the code once the last item is finished unzipping, then you will instantly see all the items go from unchecked to checked, and it say "Finished extracting"... Which defeats the entire purpose.

So, what I want to know is: How do I make it so that you can actually SEE whats going on as it is happening, and the user can still interact (scroll down the list of items) with the program, while it is unzipping, and the user can actually see what item its currently on, and what items are done (indicated by it being checked or not)?

I have all this code on a timer right now(with a 1 interval (1 millisecond)):

[code]
    For Each file In archive.Entries
        label1.Text = "Currently Unzipping: " & file.FilePath & "..."
        If file.IsComplete = True Then
            'Check off each item once it is actually finished extracting to its destination...
            CheckedListBox.SetItemChecked(CheckedListBox.Items.IndexOf(file.FilePath), True)
        End If
    Next
[/code]

Viewing all articles
Browse latest Browse all 239

Trending Articles