Click here to Skip to main content
15,887,875 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to call text file & compare it Pin
Christian Graus29-Oct-06 3:13
protectorChristian Graus29-Oct-06 3:13 
GeneralRe: How to call text file & compare it [modified] Pin
Tamimi - Code29-Oct-06 3:47
Tamimi - Code29-Oct-06 3:47 
Questionmodem GPRS Pin
nmhai8328-Oct-06 21:39
nmhai8328-Oct-06 21:39 
Questioncapture screen with mouse Pin
pbp_28628-Oct-06 21:02
pbp_28628-Oct-06 21:02 
QuestionRe: capture screen with mouse Pin
Jun Du29-Oct-06 5:12
Jun Du29-Oct-06 5:12 
AnswerRe: capture screen with mouse Pin
pbp_28630-Oct-06 3:57
pbp_28630-Oct-06 3:57 
QuestionHow to build a ProgressBar that depend on other process (retrieving data from DB) ? Pin
digitalhand28-Oct-06 19:06
digitalhand28-Oct-06 19:06 
AnswerRe: How to build a ProgressBar that depend on other process (retrieving data from DB) ? Pin
Larantz28-Oct-06 19:38
Larantz28-Oct-06 19:38 
Sounds difficult since you dont know how long it will take to get the data from the database. Perhaps you could first ask the database how many 'hits' your sqlquery would produce, and set the progressbars 'maxvalue' to equal 'hits'. Then finally retrieve one value at a time incrementaly and update the progressbar each time.

If it's the data manipulation that takes time, you'd get all the values in one call to the database, set the 'maxvalue' equal to rows retrieved, and then update the progressbar each time you've prosessed one row of data into the DataGridView.

If you want the progressbar to float in a dialogwindow over the parentwindow, you can make a custom form containing only the progressbar. Let the form take the maxvalue for the progressbar in the constructor and expose the increment method through a public method in the form. Then create the form before you start prosessing data, and call the increment method each time you've prosessed a row. You'd just close it through the eventhandlers when the progressbar reaches 100%.

Best wishes!

-Larantz-

for those about to code, we salute you
http://www.tellus-software.com

GeneralRe: How to build a ProgressBar that depend on other process (retrieving data from DB) ? Pin
digitalhand29-Oct-06 1:54
digitalhand29-Oct-06 1:54 
GeneralRe: How to build a ProgressBar that depend on other process (retrieving data from DB) ? Pin
Larantz29-Oct-06 11:59
Larantz29-Oct-06 11:59 
GeneralRe: How to build a ProgressBar that depend on other process (retrieving data from DB) ? Pin
digitalhand29-Oct-06 20:01
digitalhand29-Oct-06 20:01 
AnswerRe: How to build a ProgressBar that depend on other process (retrieving data from DB) ? Pin
Pete O'Hanlon30-Oct-06 1:46
mvePete O'Hanlon30-Oct-06 1:46 
GeneralRe: How to build a ProgressBar that depend on other process (retrieving data from DB) ? Pin
digitalhand2-Nov-06 4:31
digitalhand2-Nov-06 4:31 
GeneralRe: How to build a ProgressBar that depend on other process (retrieving data from DB) ? Pin
Pete O'Hanlon2-Nov-06 9:55
mvePete O'Hanlon2-Nov-06 9:55 
AnswerRe: How to build a ProgressBar that depend on other process (retrieving data from DB) ? Pin
jahirhstu10-Jul-09 22:19
jahirhstu10-Jul-09 22:19 
QuestionHidden process Pin
chowj28-Oct-06 17:53
chowj28-Oct-06 17:53 
AnswerRe: Hidden process Pin
Jun Du29-Oct-06 5:09
Jun Du29-Oct-06 5:09 
GeneralRe: Hidden process Pin
chowj29-Oct-06 12:43
chowj29-Oct-06 12:43 
GeneralRe: Hidden process Pin
Jun Du30-Oct-06 2:24
Jun Du30-Oct-06 2:24 
QuestionImplementing a COM defined interface in C# Pin
malayalite28-Oct-06 17:46
malayalite28-Oct-06 17:46 
AnswerRe: Implementing a COM defined interface in C# Pin
Pete O'Hanlon30-Oct-06 4:06
mvePete O'Hanlon30-Oct-06 4:06 
GeneralRe: Implementing a COM defined interface in C# Pin
malayalite7-Nov-06 9:02
malayalite7-Nov-06 9:02 
GeneralRe: Implementing a COM defined interface in C# Pin
Pete O'Hanlon7-Nov-06 9:27
mvePete O'Hanlon7-Nov-06 9:27 
GeneralRe: Implementing a COM defined interface in C# Pin
malayalite7-Nov-06 9:56
malayalite7-Nov-06 9:56 
GeneralRe: Implementing a COM defined interface in C# Pin
malayalite7-Nov-06 9:59
malayalite7-Nov-06 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.