Click here to Skip to main content
15,900,482 members
Home / Discussions / C#
   

C#

 
QuestionDrag and drop listview Pin
Diego F.3-Apr-07 5:03
Diego F.3-Apr-07 5:03 
AnswerRe: Drag and drop listview Pin
led mike3-Apr-07 6:01
led mike3-Apr-07 6:01 
GeneralRe: Drag and drop listview Pin
Diego F.3-Apr-07 21:52
Diego F.3-Apr-07 21:52 
QuestionHow to save Excel object for further use? Pin
BlackBar3-Apr-07 4:40
BlackBar3-Apr-07 4:40 
AnswerRe: How to save Excel object for further use? Pin
Douglas Troy3-Apr-07 5:35
Douglas Troy3-Apr-07 5:35 
GeneralRe: How to save Excel object for further use? Pin
BlackBar3-Apr-07 8:55
BlackBar3-Apr-07 8:55 
QuestionSQL Files Pin
hadad3-Apr-07 4:20
hadad3-Apr-07 4:20 
AnswerRe: SQL Files Pin
Douglas Troy3-Apr-07 7:15
Douglas Troy3-Apr-07 7:15 
Questionuse panel inside a user control to drop controls in and make this panel locked. Pin
Johnny Hooyberghs3-Apr-07 3:53
Johnny Hooyberghs3-Apr-07 3:53 
QuestionHow to open MyDocument Explorer, My Network places Explorer in C# Pin
Sanjib Raj3-Apr-07 2:29
Sanjib Raj3-Apr-07 2:29 
AnswerRe: How to open MyDocument Explorer, My Network places Explorer in C# Pin
kubben3-Apr-07 3:06
kubben3-Apr-07 3:06 
AnswerRe: How to open MyDocument Explorer, My Network places Explorer in C# Pin
Douglas Troy3-Apr-07 4:39
Douglas Troy3-Apr-07 4:39 
Questionhow to run exe file in ram (on the fly) ? Pin
hdv2123-Apr-07 1:58
hdv2123-Apr-07 1:58 
AnswerRe: how to run exe file in ram (on the fly) ? Pin
Pete O'Hanlon3-Apr-07 2:33
mvePete O'Hanlon3-Apr-07 2:33 
GeneralRe: how to run exe file in ram (on the fly) ? Pin
originSH3-Apr-07 2:35
originSH3-Apr-07 2:35 
GeneralRe: how to run exe file in ram (on the fly) ? Pin
Pete O'Hanlon3-Apr-07 3:07
mvePete O'Hanlon3-Apr-07 3:07 
GeneralRe: how to run exe file in ram (on the fly) ? Pin
originSH3-Apr-07 3:50
originSH3-Apr-07 3:50 
GeneralRe: how to run exe file in ram (on the fly) ? Pin
Pete O'Hanlon3-Apr-07 4:39
mvePete O'Hanlon3-Apr-07 4:39 
GeneralRe: how to run exe file in ram (on the fly) ? Pin
originSH3-Apr-07 5:27
originSH3-Apr-07 5:27 
QuestionUpdate properties of an arraylist of components quickly Pin
jonwalmsley3-Apr-07 1:56
jonwalmsley3-Apr-07 1:56 
Hi,

I'm trying to update a property on an arraylist of visual components on a form, getting the property value to set by calling a method on another object. However, performance is unacceptably slow.



public delegate void VisualComponentUpdateHandler(VisualComponent v, int val);<br />
public void VisualComponentUpdate(VisualComponent v, int val)<br />
{<br />
   v.Value = val;<br />
}



and running in a seperate thread:

<br />
VisualComponentUpdateHandler d = new VisualComponentUpdateHandler(VisualComponentUpdate);<br />
int val;<br />
while (true)<br />
{<br />
   foreach (VisualComponent v in visualComponentArrayList)<br />
   {<br />
      val = sourceObject.GetValue(Convert.ToInt32(v.Name));<br />
      d.Invoke(v, val)<br />
   }<br />
   Thread.Sleep(100);<br />
}


I added the Thread.Sleep(100) because without it, the visuals don't seem to update.

I've got anything up to 128 of the visual components to update - they're custom components derived from ProgressBar, displaying a measurement which is obtained from a program running on a seperate machine which passes a new sourceObject every 250ms to the program via .NET remoting (this updating mechanism runs in another thread and doesn't seem to be affected by the slowdown in response which occurs when the property update thread is running).

Unsure | :~
AnswerRe: Update properties of an arraylist of components quickly Pin
Bijesh3-Apr-07 3:15
Bijesh3-Apr-07 3:15 
GeneralRe: Update properties of an arraylist of components quickly Pin
jonwalmsley3-Apr-07 3:59
jonwalmsley3-Apr-07 3:59 
GeneralRe: Update properties of an arraylist of components quickly Pin
jonwalmsley3-Apr-07 4:20
jonwalmsley3-Apr-07 4:20 
QuestionHow to start method after another one finishes (Thread) Pin
choopie3-Apr-07 1:38
choopie3-Apr-07 1:38 
AnswerRe: How to start method after another one finishes (Thread) Pin
karam chandrabose3-Apr-07 1:46
karam chandrabose3-Apr-07 1:46 

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.