Click here to Skip to main content
15,913,487 members
Home / Discussions / C#
   

C#

 
Generalsort information in a listbox by name Pin
nidhelp19-Jul-05 19:36
nidhelp19-Jul-05 19:36 
GeneralRe: sort information in a listbox by name Pin
Kodanda Pani19-Jul-05 21:03
Kodanda Pani19-Jul-05 21:03 
Generalnid codes for project Pin
nidhelp19-Jul-05 19:23
nidhelp19-Jul-05 19:23 
GeneralVirtual Keyboard help plz Pin
arun_appu19-Jul-05 18:22
arun_appu19-Jul-05 18:22 
GeneralRe: Virtual Keyboard help plz Pin
Nick Parker19-Jul-05 18:32
protectorNick Parker19-Jul-05 18:32 
GeneralListView Item Selection Pin
takkung19-Jul-05 18:05
takkung19-Jul-05 18:05 
GeneralRe: ListView Item Selection Pin
Nick Parker19-Jul-05 18:16
protectorNick Parker19-Jul-05 18:16 
GeneralRe: ListView Item Selection Pin
takkung19-Jul-05 21:43
takkung19-Jul-05 21:43 
I already set ListView.HideSelection but I can't presserve highlighting from a selected item. I think when I select an item and I push Move Up button then the listview control need to be repaint the control because the items in the listview control has changed so the highlighting will be disappear.
The problem is how can I preserve the highlighting at the item that I 've moved up or moved down so I can continue to move that item up or down again and so on. In Listbox control there 's SetSelected method so it can highlight the moved up/down item but in ListView it doesn't have SetSelected method.
this is my code( Move up button click event handler )

int curIndex = this.listSelectedSongs.Items.IndexOf(listSelectedSongs.SelectedItems[0]);
ListViewItem aboveTmpItem = (ListViewItem)this.listSelectedSongs.Items[curIndex-1].Clone();
ListViewItem curTmpItem = (ListViewItem)this.listSelectedSongs.Items[curIndex].Clone();
this.listSelectedSongs.Items[curIndex-1] = curTmpItem;
this.listSelectedSongs.Items[curIndex] = aboveTmpItem;
GeneralRe: ListView Item Selection Pin
takkung19-Jul-05 22:19
takkung19-Jul-05 22:19 
GeneralRe: ListView Item Selection Pin
Nick Parker20-Jul-05 1:50
protectorNick Parker20-Jul-05 1:50 
GeneralFlicker-free Refesh Pin
Justin Clayden19-Jul-05 16:56
Justin Clayden19-Jul-05 16:56 
GeneralRe: Flicker-free Refesh Pin
Alomgir Miah19-Jul-05 17:36
Alomgir Miah19-Jul-05 17:36 
Questionnetworking questions ? Pin
snouto19-Jul-05 15:51
snouto19-Jul-05 15:51 
GeneralEvents Pin
noneformenoneforme19-Jul-05 15:08
noneformenoneforme19-Jul-05 15:08 
GeneralRe: Events Pin
Christian Graus19-Jul-05 15:17
protectorChristian Graus19-Jul-05 15:17 
GeneralRe: Events Pin
Nick Parker19-Jul-05 15:23
protectorNick Parker19-Jul-05 15:23 
GeneralRe: Events Pin
Christian Graus21-Aug-05 15:29
protectorChristian Graus21-Aug-05 15:29 
GeneralVisual Studio style options dialog Pin
Rob Tomson19-Jul-05 13:27
Rob Tomson19-Jul-05 13:27 
GeneralRe: Visual Studio style options dialog Pin
Luis Alonso Ramos19-Jul-05 14:57
Luis Alonso Ramos19-Jul-05 14:57 
GeneralRe: Visual Studio style options dialog Pin
Nick Parker19-Jul-05 15:25
protectorNick Parker19-Jul-05 15:25 
QuestionRemoting - should I keep remote objects alive? Pin
Judah Gabriel Himango19-Jul-05 11:21
sponsorJudah Gabriel Himango19-Jul-05 11:21 
AnswerRe: Remoting - should I keep remote objects alive? Pin
KaptinKrunch19-Jul-05 13:07
KaptinKrunch19-Jul-05 13:07 
GeneralRe: Remoting - should I keep remote objects alive? Pin
Judah Gabriel Himango20-Jul-05 4:14
sponsorJudah Gabriel Himango20-Jul-05 4:14 
QuestionUpdate the UI? Pin
Luis Alonso Ramos19-Jul-05 10:34
Luis Alonso Ramos19-Jul-05 10:34 
AnswerRe: Update the UI? Pin
KaptinKrunch19-Jul-05 13:01
KaptinKrunch19-Jul-05 13:01 

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.