Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 19-02-2009, 06:55 PM   #1 (permalink)
In The Zone
 
Pragadheesh's Avatar
 
Join Date: Jul 2006
Location: Coimbatore
Posts: 403
Unhappy C# regarding progress bar


hi,
Code:
private void mnuTestGen_Click(object sender, System.EventArgs e) // by pragadheesh
          {
              Test();
              btnTestGen_Click(sender, e);
          }
in the above code,the methods Test() and btnTestGen_Click() takes time, so i want to add a progress bar as long as those two methods are processing.
how can i do it.?
Pragadheesh is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 19-02-2009, 08:02 PM   #2 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: C# regarding progress bar

You should add progressbar support to Test() and the button click event, not this function.

first create a progressbar, then set the max and min like:

progressbar.maximum = 100
progressbar.minimum = 0

and progressbar.step = 1

self explanatory i think... you set the min and max limits of the bar, and step is the no of steps.

thats for configuring the bar. for modifying the bar, you use the progressbar.value during your function.

like progressbar.value += 1
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant save progress in ut3!! evil_maverick Gamerz 2 21-05-2008 09:32 PM
Progress bar using JpGraph whoopy_whale QnA (read only) 2 10-08-2007 09:59 AM
Indiagames Ashoka : Progress tarey_g Gamerz 55 12-05-2005 12:50 AM
progress bar....GONE!! hearthacker QnA (read only) 3 18-09-2004 12:52 PM
How to Backup Need For Speed Underground Progress? siddhesh QnA (read only) 13 19-07-2004 12:24 PM

 
Latest Threads
- by gforz
- by soumya
- by Sujeet
- by icebags
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2