all groups > vb.net controls > august 2004 >
You're in the

vb.net controls

group:

Progress Bar


Progress Bar Dino Buljubasic
8/27/2004 7:55:14 PM
vb.net controls:
I have a form that has a progress bar on it for tracking opening of a
file.
Everything works fine but when I click on X (Close) toclose the form
while my progress bur is running, I get the window saying "This
program is not responding"

How do I fix this?

Re: Progress Bar Dino Buljubasic
8/27/2004 9:42:37 PM

I am fetching document data from database and using fileStream and
dataReader.GetBytes to download the file and open it


On 27 Aug 2004 23:38:15 +0200, hirf-spam-me-here@gmx.at (Herfried K.
[quoted text, click to view]
Re: Progress Bar Dino Buljubasic
8/27/2004 10:25:18 PM
no I did not yet, I am gonna try that too


On 28 Aug 2004 00:04:11 +0200, hirf-spam-me-here@gmx.at (Herfried K.
[quoted text, click to view]
Re: Progress Bar Dino Buljubasic
8/27/2004 10:40:32 PM
that works fine, my form closes without the error message but now the
file that I was opening still opens. How can I stop that?

On 28 Aug 2004 00:04:11 +0200, hirf-spam-me-here@gmx.at (Herfried K.
[quoted text, click to view]
Re: Progress Bar hirf-spam-me-here NO[at]SPAM gmx.at
8/27/2004 11:38:15 PM
* Dino Buljubasic <dino@noplacelikehome.com> scripsit:
[quoted text, click to view]

Is there any processing going on? Are you looping through datasets?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
Re: Progress Bar hirf-spam-me-here NO[at]SPAM gmx.at
8/28/2004 12:04:11 AM
* Dino Buljubasic <dino@noplacelikehome.com> scripsit:
[quoted text, click to view]

Did you try to call 'Application.DoEvents' every n-th iteration ('If LoopCounter
Mod n = 0 Then Application.DoEvents'?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
Re: Progress Bar hirf-spam-me-here NO[at]SPAM gmx.at
8/28/2004 12:57:19 AM
* Dino Buljubasic <dino@noplacelikehome.com> scripsit:
[quoted text, click to view]

What do you mean with "still opens"? Add a handler to the form's
'Closing' event and close the file there (or set a variable that is
checked inside the loop).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
AddThis Social Bookmark Button