Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 10th, 2007, 12:35 AM
Friend of Wrox
 
Join Date: Sep 2007
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default How to tell the user that the program is working?

Hi

I am what a good way would be to show the user the program is doing some calculations and not that the program has stopped responding.

I tried to do a progress bar and put it in my for-loop but the thing is the for-loop went faster then the writing to the file. So the for-loop was done and progress bar showed that it was had finished but the writing to the file was still going so my program still looked like it was not responding so what can I do to make the progress bar more current of where it really is at.

 
Old November 10th, 2007, 06:05 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

The usual way is if you know how much data you are writing to the file to update the progress bar when you are a certain percentage of the way through.

If you don't know how long its gong to take to write the data to the file, or how much data there is then just start the progress bar from zero again and keep going till the writing has finished would be one way.

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Working with Excel from VB6 program aarmit10 Pro VB 6 0 March 17th, 2006 06:36 AM
Beginner Question: User Login and Out Program victor888 C# 2005 2 March 10th, 2006 08:21 AM
How to program a multi-user app James Diamond Classic ASP Databases 1 February 2nd, 2004 11:48 AM
How do I program a multi-user app? James Diamond Classic ASP Professional 1 February 2nd, 2004 11:47 AM
Linked Table working very slow with client program Nerijus Access 0 July 7th, 2003 08:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.