Click here to Skip to main content
15,922,574 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Problem with Thread.Start Pin
George L. Jackson15-May-06 15:26
George L. Jackson15-May-06 15:26 
GeneralRe: Problem with Thread.Start Pin
Bob_Sun15-May-06 15:42
Bob_Sun15-May-06 15:42 
GeneralRe: Problem with Thread.Start Pin
George L. Jackson15-May-06 16:04
George L. Jackson15-May-06 16:04 
GeneralRe: Problem with Thread.Start Pin
Bob_Sun25-Jun-06 17:11
Bob_Sun25-Jun-06 17:11 
GeneralRe: Problem with Thread.Start Pin
George L. Jackson15-May-06 15:33
George L. Jackson15-May-06 15:33 
QuestionProblem whit Internet and .NET Pin
korrea8011-May-06 21:32
korrea8011-May-06 21:32 
QuestionHow to avail my assembly in Addreference Dialogue by default Pin
Saravanakumar.K11-May-06 19:02
Saravanakumar.K11-May-06 19:02 
QuestionUpdating ListView items in realtime. how? Pin
Ruth Ivimey-Cook11-May-06 14:03
Ruth Ivimey-Cook11-May-06 14:03 
Hi folks,

Background:
I am creating a control using VS2005 .NET Framework that reports on the progress of some background processes. There is no concept of data entry or selection here; the only user action is to scroll the list if required. The current implementation of this uses a ListBox-derived control with drawing code implemented in the DrawItem event handler. That code works (more or less) fine when the data that backs each item in the list is static. I have two items that change dynamically: a progress bar and a text field that must be able to change fairly quickly over time. The current implementation includes custom drawing code for the whole - there are no child controls.

My problem is that although I can change the value of the data field easily enough, all I can think of doing to make the ListBox aware of the change is to call Invalidate() for the whole control, and the paint events don't keep up, and the resulting effect is very jerky - tending in fact towards only updating once the progress reaches 100%

The reason for a global Invalidate is that I am not aware of anything in ListBox that enables me to discover where an individual item is on screen, so I can't paint it explicitly or do a bounded invalidate. I am wondering if ListView offers that ability, but can't see it if that's so.


So, to put the question straight: With an owner drawn list box/view, how to I tell the control that a (sub)item must be repainted now - preferably this instant - because the data backing it has changed?


Regards

Ruth


Ruth Ivimey-Cook
VS2005 / C# & VB
AnswerRe: Updating ListView items in realtime. how? Pin
Robert Rohde12-May-06 22:43
Robert Rohde12-May-06 22:43 
GeneralRe: Updating ListView items in realtime. how? Pin
Ruth Ivimey-Cook15-May-06 23:59
Ruth Ivimey-Cook15-May-06 23:59 
QuestionGet wireless mouse information in .NET Pin
colin_os11-May-06 4:15
colin_os11-May-06 4:15 
AnswerRe: Get wireless mouse information in .NET Pin
Josh Smith14-May-06 5:26
Josh Smith14-May-06 5:26 
GeneralRe: Get wireless mouse information in .NET Pin
colin_os14-May-06 22:45
colin_os14-May-06 22:45 
QuestionMatrox X.mio Card in .Net Framework Pin
Andy Rama10-May-06 23:29
Andy Rama10-May-06 23:29 
QuestionFile lock problem with Image.FromFile() Pin
Stefan Spenz10-May-06 21:19
Stefan Spenz10-May-06 21:19 
GeneralRe: File lock problem with Image.FromFile() Pin
Guffa10-May-06 21:35
Guffa10-May-06 21:35 
QuestionDataGrid Problem Pin
jaded_angel10-May-06 10:26
jaded_angel10-May-06 10:26 
AnswerRe: DataGrid Problem Pin
Guffa12-May-06 20:07
Guffa12-May-06 20:07 
QuestionProblem importing Excel reference to VS2005 Pin
siliconesoul10-May-06 9:08
siliconesoul10-May-06 9:08 
QuestionNeed some guidance on cross-paltform encryption Pin
He is Cool10-May-06 5:56
He is Cool10-May-06 5:56 
QuestionBlocks Aplicattion Pin
korrea8010-May-06 3:48
korrea8010-May-06 3:48 
AnswerRe: Blocks Aplicattion Pin
lmoelleb10-May-06 4:08
lmoelleb10-May-06 4:08 
GeneralRe: Blocks Aplicattion Pin
korrea8010-May-06 4:56
korrea8010-May-06 4:56 
GeneralRe: Blocks Aplicattion Pin
Ruth Ivimey-Cook12-May-06 0:14
Ruth Ivimey-Cook12-May-06 0:14 
QuestionHow to Impersonate from Credential Pin
Saravanakumar.K10-May-06 3:21
Saravanakumar.K10-May-06 3:21 

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.