Click here to Skip to main content
15,902,635 members
Home / Discussions / C#
   

C#

 
GeneralRe: 4 IT developers Pin
PIEBALDconsult24-Feb-09 15:22
mvePIEBALDconsult24-Feb-09 15:22 
GeneralRe: 4 IT developers Pin
Ennis Ray Lynch, Jr.24-Feb-09 16:04
Ennis Ray Lynch, Jr.24-Feb-09 16:04 
GeneralRe: 4 IT developers Pin
Megidolaon25-Feb-09 22:19
Megidolaon25-Feb-09 22:19 
QuestionParsing nested blocks in SQL using C# [modified] Pin
aaCog24-Feb-09 1:21
aaCog24-Feb-09 1:21 
AnswerRe: Parsing nested blocks in SQL using C# Pin
Ennis Ray Lynch, Jr.24-Feb-09 3:24
Ennis Ray Lynch, Jr.24-Feb-09 3:24 
QuestionRe: Parsing nested blocks in SQL using C# Pin
aaCog24-Feb-09 17:34
aaCog24-Feb-09 17:34 
GeneralFirefox-like Download listbox Pin
see_seA24-Feb-09 0:53
see_seA24-Feb-09 0:53 
AnswerRe: Firefox-like Download listbox Pin
Eddy Vluggen24-Feb-09 9:36
professionalEddy Vluggen24-Feb-09 9:36 
Start out with a UserControl, and dub it "WorkList". Set "AutoScroll" to true. This will cause scrollbars to appear in the master-control when there's items that don't fit in the client-area.

Create a new UserControl called "WorkItem" that holds:
- a label
- a progressBar
A minimum & maximum-height of, e.g. 200.

I assume that you'll be using backgroundWorkers to do the work, and that you're going to keep the progress of each thread in the "downloadlist". Whenever you create a new backgroundworker, you also create a new "WorkItem" usercontrol, and pass it as a parameter to the new thread. Set the Dock property to "Top", and it will snap in place in the list.

In the .DoWork of the backgroundworker, call the backgroundWorker1.ReportProgress( ... ) method.

This will raise the backgroundWorker1_ProgressChanged event, in which you update the progressBar of the associated "WorkItem"-usercontrol. If the Control is @100%, dispose Smile | :)

I are Draenei, apparently, level 72 D'Oh! | :doh:

Questionis sqldataadpater supports only datasets to fill Pin
prasadbuddhika24-Feb-09 0:23
prasadbuddhika24-Feb-09 0:23 
AnswerRe: is sqldataadpater supports only datasets to fill Pin
High0ctane24-Feb-09 1:10
High0ctane24-Feb-09 1:10 
AnswerRe: is sqldataadpater supports only datasets to fill Pin
Ennis Ray Lynch, Jr.24-Feb-09 3:25
Ennis Ray Lynch, Jr.24-Feb-09 3:25 
Questionimplement ray tracing algorithm in c# Pin
Nettai24-Feb-09 0:19
Nettai24-Feb-09 0:19 
AnswerRe: implement ray tracing algorithm in c# Pin
Rob Philpott24-Feb-09 0:24
Rob Philpott24-Feb-09 0:24 
GeneralRe: implement ray tracing algorithm in c# Pin
Nettai24-Feb-09 0:36
Nettai24-Feb-09 0:36 
GeneralRe: implement ray tracing algorithm in c# Pin
Deresen24-Feb-09 1:32
Deresen24-Feb-09 1:32 
GeneralRe: implement ray tracing algorithm in c# Pin
ABitSmart24-Feb-09 1:58
ABitSmart24-Feb-09 1:58 
GeneralRe: implement ray tracing algorithm in c# Pin
Deresen24-Feb-09 2:04
Deresen24-Feb-09 2:04 
QuestionPassing Variant parameters by ref to ActiveX COM object Type Mismatch exception [modified] Pin
brettonansley24-Feb-09 0:00
brettonansley24-Feb-09 0:00 
Questionforce winforms custom control to be square Pin
Jon Hulatt23-Feb-09 23:47
Jon Hulatt23-Feb-09 23:47 
AnswerRe: force winforms custom control to be square Pin
Rob Philpott23-Feb-09 23:49
Rob Philpott23-Feb-09 23:49 
AnswerRe: force winforms custom control to be square Pin
#realJSOP24-Feb-09 0:16
professional#realJSOP24-Feb-09 0:16 
AnswerRe: force winforms custom control to be square Pin
benjymous24-Feb-09 1:28
benjymous24-Feb-09 1:28 
QuestionMail using Microsoft Exchange server Pin
Ramkithepower23-Feb-09 23:45
Ramkithepower23-Feb-09 23:45 
QuestionDrag Drop event of RichText Box in c#.net Pin
Lijo Rajan23-Feb-09 23:11
Lijo Rajan23-Feb-09 23:11 
AnswerRe: Drag Drop event of RichText Box in c#.net Pin
Calin Tatar24-Feb-09 0:47
Calin Tatar24-Feb-09 0:47 

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.