Click here to Skip to main content
15,914,642 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question on tree view editing with button click Pin
pmarfleet30-Oct-07 11:43
pmarfleet30-Oct-07 11:43 
GeneralRe: Question on tree view editing with button click [modified] Pin
C# Beginner Nick30-Oct-07 11:52
C# Beginner Nick30-Oct-07 11:52 
GeneralRe: Question on tree view editing with button click Pin
pmarfleet30-Oct-07 12:05
pmarfleet30-Oct-07 12:05 
GeneralRe: Question on tree view editing with button click Pin
C# Beginner Nick30-Oct-07 12:08
C# Beginner Nick30-Oct-07 12:08 
GeneralRe: Question on tree view editing with button click Pin
C# Beginner Nick30-Oct-07 12:17
C# Beginner Nick30-Oct-07 12:17 
GeneralRe: Question on tree view editing with button click Pin
pmarfleet30-Oct-07 12:27
pmarfleet30-Oct-07 12:27 
GeneralDynamically Update ListBox Item Pin
Brady Kelly30-Oct-07 7:54
Brady Kelly30-Oct-07 7:54 
GeneralRe: Dynamically Update ListBox Item Pin
Luc Pattyn30-Oct-07 8:14
sitebuilderLuc Pattyn30-Oct-07 8:14 
Hi Brady,

AFAIK a ListBox does not copy data to some internal location, it holds a collection of items,
and works from there.

If you create a reason for repainting it, you should call Invalidate() on the listbox;
you can use optional arguments to restrict the repainted area, but there is no "index"
input available.

You could try and use ListBox.GetItemRectangle to feed ListBox.Invalidate().

Alternatively (I have not tried this!), you could cause a specific item to be repainted
by changing one of its properties, Selected comes to mind. So you could try:

myListBox.SetSelected(!myListBox.GetSelected(index));
myListBox.SetSelected(!myListBox.GetSelected(index));

which toggles the item's selection back and forth, causing two repaints of that one item.



Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


GeneralRe: Dynamically Update ListBox Item Pin
Brady Kelly30-Oct-07 10:40
Brady Kelly30-Oct-07 10:40 
GeneralRe: Dynamically Update ListBox Item Pin
Luc Pattyn30-Oct-07 12:07
sitebuilderLuc Pattyn30-Oct-07 12:07 
GeneralRe: Dynamically Update ListBox Item Pin
Brady Kelly30-Oct-07 12:13
Brady Kelly30-Oct-07 12:13 
QuestionDraw functions don't work Pin
Manfr3d30-Oct-07 6:58
Manfr3d30-Oct-07 6:58 
AnswerRe: Draw functions don't work Pin
Ennis Ray Lynch, Jr.30-Oct-07 7:24
Ennis Ray Lynch, Jr.30-Oct-07 7:24 
GeneralRe: Draw functions don't work Pin
Manfr3d30-Oct-07 7:39
Manfr3d30-Oct-07 7:39 
GeneralRe: Draw functions don't work Pin
Ennis Ray Lynch, Jr.30-Oct-07 8:20
Ennis Ray Lynch, Jr.30-Oct-07 8:20 
GeneralRe: Draw functions don't work Pin
Manfr3d30-Oct-07 8:42
Manfr3d30-Oct-07 8:42 
GeneralRe: Draw functions don't work Pin
Manfr3d30-Oct-07 11:18
Manfr3d30-Oct-07 11:18 
QuestionReading dbf, tables not completely filled Pin
JoZ CaVaLLo30-Oct-07 6:43
JoZ CaVaLLo30-Oct-07 6:43 
AnswerRe: Reading dbf, tables not completely filled Pin
snorkie30-Oct-07 7:16
professionalsnorkie30-Oct-07 7:16 
GeneralRe: Reading dbf, tables not completely filled Pin
JoZ CaVaLLo30-Oct-07 23:36
JoZ CaVaLLo30-Oct-07 23:36 
GeneralRe: Reading dbf, tables not completely filled Pin
snorkie31-Oct-07 3:34
professionalsnorkie31-Oct-07 3:34 
AnswerRe: Reading dbf, tables not completely filled - Similar w/ Excel Pin
David Atchison21-Oct-11 7:37
David Atchison21-Oct-11 7:37 
QuestionWhat is faster? C# or C++ Pin
Tomerland30-Oct-07 6:34
Tomerland30-Oct-07 6:34 
AnswerRe: What is faster? C# or C++ Pin
led mike30-Oct-07 6:40
led mike30-Oct-07 6:40 
AnswerRe: What is faster? C# or C++ Pin
Thomas Stockwell30-Oct-07 12:05
professionalThomas Stockwell30-Oct-07 12:05 

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.