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

C#

 
GeneralRe: "On-demand" ListBox Pin
led mike24-Jan-08 4:59
led mike24-Jan-08 4:59 
GeneralRe: "On-demand" ListBox [modified] Pin
Alan Balkany24-Jan-08 5:16
Alan Balkany24-Jan-08 5:16 
GeneralRe: "On-demand" ListBox Pin
Alan Balkany24-Jan-08 5:56
Alan Balkany24-Jan-08 5:56 
GeneralUpload file to server from windows application Pin
MayyMagdy24-Jan-08 4:11
MayyMagdy24-Jan-08 4:11 
GeneralRe: Upload file to server from windows application Pin
Ed.Poore24-Jan-08 4:14
Ed.Poore24-Jan-08 4:14 
AnswerRe: Upload file to server from windows application Pin
MayyMagdy24-Jan-08 4:16
MayyMagdy24-Jan-08 4:16 
GeneralRe: Upload file to server from windows application Pin
Justin Perez24-Jan-08 4:20
Justin Perez24-Jan-08 4:20 
QuestionHow to Refresh a ListBox Contents ? Pin
MehmetFurkan24-Jan-08 2:36
MehmetFurkan24-Jan-08 2:36 
Hi,
I am using a ListBox on my form. My ListBox.Items property (which is ObjectCollection) contains objects of my-defined class type, whose ToString() methods are overriden. As I know, a ListBox calls the ToString() method of each item in its Items property to build a "string" to display. When adding a new object item ot Items affects display strings as a result.
So far everything is good and reasonable. The problem is that, when I MODIFY an object's content held by ListBox.Items, I expect the ListBox control redraw its content. Cause my modification affects the overridden ToString() method of an object of ListBox.Items. So I expect that the ListBox control to change display string of related object.

Unfortunately it does not work even if I have tried to call ListBox.Refresh(), or Update() method. Any other method I should call or my way thinking about ListBox.Items and displaying mechanism is wrong?
AnswerRe: How to Refresh a ListBox Contents ? Pin
Justin Perez24-Jan-08 2:57
Justin Perez24-Jan-08 2:57 
GeneralRe: How to Refresh a ListBox Contents ? Pin
MehmetFurkan24-Jan-08 3:15
MehmetFurkan24-Jan-08 3:15 
GeneralRe: How to Refresh a ListBox Contents ? Pin
Justin Perez24-Jan-08 3:33
Justin Perez24-Jan-08 3:33 
GeneralRe: How to Refresh a ListBox Contents ? Pin
Luc Pattyn24-Jan-08 3:59
sitebuilderLuc Pattyn24-Jan-08 3:59 
AnswerRe: How to Refresh a ListBox Contents ? Pin
darkelv24-Jan-08 15:28
darkelv24-Jan-08 15:28 
GeneralOwner draw ListView Pin
N a v a n e e t h24-Jan-08 2:28
N a v a n e e t h24-Jan-08 2:28 
GeneralRe: Owner draw ListView Pin
Vasudevan Deepak Kumar24-Jan-08 4:06
Vasudevan Deepak Kumar24-Jan-08 4:06 
GeneralRe: Owner draw ListView Pin
N a v a n e e t h24-Jan-08 7:40
N a v a n e e t h24-Jan-08 7:40 
GeneralRe: Owner draw ListView Pin
led mike24-Jan-08 4:51
led mike24-Jan-08 4:51 
GeneralRe: Owner draw ListView Pin
N a v a n e e t h24-Jan-08 7:44
N a v a n e e t h24-Jan-08 7:44 
GeneralRe: Owner draw ListView Pin
led mike24-Jan-08 9:33
led mike24-Jan-08 9:33 
GeneralInsert null to an image-data-typed field Pin
DannyAdler24-Jan-08 2:20
DannyAdler24-Jan-08 2:20 
GeneralRe: Insert null to an image-data-typed field Pin
Anthony Mushrow24-Jan-08 2:33
professionalAnthony Mushrow24-Jan-08 2:33 
AnswerRe: Insert null to an image-data-typed field Pin
Guffa24-Jan-08 2:57
Guffa24-Jan-08 2:57 
QuestionSystem tray icon says (# Runs)? Pin
Gene Arnold24-Jan-08 1:48
Gene Arnold24-Jan-08 1:48 
AnswerRe: System tray icon says (# Runs)? Pin
DaveyM6924-Jan-08 2:03
professionalDaveyM6924-Jan-08 2:03 
GeneralRe: System tray icon says (# Runs)? Pin
Gene Arnold24-Jan-08 2:06
Gene Arnold24-Jan-08 2:06 

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.