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

C#

 
GeneralRe: Copying items between two listviews Pin
Giorgi Dalakishvili10-Jun-08 3:17
mentorGiorgi Dalakishvili10-Jun-08 3:17 
GeneralRe: Copying items between two listviews Pin
half-life10-Jun-08 3:17
half-life10-Jun-08 3:17 
GeneralRe: Copying items between two listviews Pin
laziale10-Jun-08 3:28
laziale10-Jun-08 3:28 
GeneralRe: Copying items between two listviews Pin
half-life10-Jun-08 6:06
half-life10-Jun-08 6:06 
GeneralRe: Copying items between two listviews Pin
laziale10-Jun-08 6:34
laziale10-Jun-08 6:34 
GeneralRe: Copying items between two listviews Pin
laziale11-Jun-08 2:59
laziale11-Jun-08 2:59 
GeneralRe: Copying items between two listviews Pin
half-life11-Jun-08 7:11
half-life11-Jun-08 7:11 
QuestionMove listbox items up/down Pin
N a v a n e e t h10-Jun-08 1:52
N a v a n e e t h10-Jun-08 1:52 
I have a collection class which wraps a generic List. This collection has two methods say, MoveUp and MoveDown. When MoveUp is called with an item, the supplied item will be moved one location down in the collection. There are events available for these operations.

I have a custom control which wraps ListBox. This control has subscribed for the events in my collection class. So when there is MoveUp or MoveDown in the collection, this control will get notifications.

Now I need to rearrange the listbox items according to the collection items when something moves up or down. I am doing this by removing all listbox items and adding it again which seems to be a bad idea and also it flickers the control.

Is there any better way to do this ?

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

AnswerRe: Move listbox items up/down Pin
Ashfield10-Jun-08 2:16
Ashfield10-Jun-08 2:16 
GeneralRe: Move listbox items up/down Pin
N a v a n e e t h10-Jun-08 3:25
N a v a n e e t h10-Jun-08 3:25 
AnswerRe: Move listbox items up/down Pin
#realJSOP10-Jun-08 2:49
professional#realJSOP10-Jun-08 2:49 
GeneralRe: Move listbox items up/down Pin
N a v a n e e t h10-Jun-08 3:24
N a v a n e e t h10-Jun-08 3:24 
GeneralRe: Move listbox items up/down Pin
#realJSOP10-Jun-08 6:21
professional#realJSOP10-Jun-08 6:21 
GeneralRe: Move listbox items up/down Pin
N a v a n e e t h10-Jun-08 7:25
N a v a n e e t h10-Jun-08 7:25 
QuestionCtrl+S Implemention Pin
half-life10-Jun-08 1:19
half-life10-Jun-08 1:19 
AnswerRe: Ctrl+S Implemention Pin
see_seA10-Jun-08 1:30
see_seA10-Jun-08 1:30 
GeneralRe: Ctrl+S Implemention Pin
half-life10-Jun-08 1:41
half-life10-Jun-08 1:41 
AnswerRe: Ctrl+S Implemention Pin
jamie55010-Jun-08 1:33
jamie55010-Jun-08 1:33 
AnswerRe: Ctrl+S Implemention Pin
Pete O'Hanlon10-Jun-08 1:39
mvePete O'Hanlon10-Jun-08 1:39 
GeneralRe: Ctrl+S Implemention Pin
half-life10-Jun-08 1:48
half-life10-Jun-08 1:48 
GeneralRe: Ctrl+S Implemention Pin
half-life10-Jun-08 2:23
half-life10-Jun-08 2:23 
GeneralRe: Ctrl+S Implemention Pin
Pete O'Hanlon10-Jun-08 3:19
mvePete O'Hanlon10-Jun-08 3:19 
GeneralRe: Ctrl+S Implemention Pin
half-life10-Jun-08 3:25
half-life10-Jun-08 3:25 
QuestionLock Form Pin
half-life10-Jun-08 1:16
half-life10-Jun-08 1:16 
AnswerRe: Lock Form Pin
Giorgi Dalakishvili10-Jun-08 1:26
mentorGiorgi Dalakishvili10-Jun-08 1:26 

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.