Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
AnswerRe: convert an expresion in a result Pin
Leslie Sanford15-Apr-07 7:59
Leslie Sanford15-Apr-07 7:59 
AnswerRe: convert an expresion in a result Pin
sherifffruitfly15-Apr-07 15:09
sherifffruitfly15-Apr-07 15:09 
QuestionMoving list view items up or down. Pin
kripzz15-Apr-07 2:24
kripzz15-Apr-07 2:24 
AnswerRe: Moving list view items up or down. Pin
Luc Pattyn15-Apr-07 6:00
sitebuilderLuc Pattyn15-Apr-07 6:00 
GeneralRe: Moving list view items up or down. Pin
kripzz15-Apr-07 12:47
kripzz15-Apr-07 12:47 
AnswerRe: Moving list view items up or down. Pin
Jaiprakash M Bankolli15-Apr-07 7:41
Jaiprakash M Bankolli15-Apr-07 7:41 
GeneralRe: Moving list view items up or down. Pin
kripzz15-Apr-07 13:07
kripzz15-Apr-07 13:07 
GeneralRe: Moving list view items up or down. [modified] Pin
Luc Pattyn15-Apr-07 13:38
sitebuilderLuc Pattyn15-Apr-07 13:38 
Hi,

there is a bug: if the last listview item is selected (the one with index=count-1),
then temp will refer to the one with index=count, which exceeds the array.

there probably is a second bug: if items 2 and 3 are selected, then maybe
first 2 and 3 get swapped, then 3 and 4 get swapped, which might not be what
was intended.
index       0 1 2 3 4 5
So original A B C D E F
becomes     A B D C E F
then        A B D E C F


Also I am not sure the items in SelectedItems are in numerical
order, in selection order, or random order.


Furthermore, there is no need to create new ListViewItems (temp, temp2).

Hope this helps

Smile | :)


-- modified at 3:39 Monday 16th April, 2007

Luc Pattyn

[My Articles]

GeneralRe: Moving list view items up or down. Pin
kripzz16-Apr-07 2:51
kripzz16-Apr-07 2:51 
GeneralRe: Moving list view items up or down. Pin
Luc Pattyn16-Apr-07 3:08
sitebuilderLuc Pattyn16-Apr-07 3:08 
QuestionHow c# app connect to sql server on another pc in local network? Pin
sgeorgije15-Apr-07 2:04
sgeorgije15-Apr-07 2:04 
AnswerRe: How c# app connect to sql server on another pc in local network? Pin
Damir Ugrin15-Apr-07 3:42
Damir Ugrin15-Apr-07 3:42 
GeneralRe: How c# app connect to sql server on another pc in local network? Pin
sgeorgije16-Apr-07 4:20
sgeorgije16-Apr-07 4:20 
AnswerRe: How c# app connect to sql server on another pc in local network? Pin
Jaiprakash M Bankolli15-Apr-07 7:42
Jaiprakash M Bankolli15-Apr-07 7:42 
QuestionNotifyIcon baloon tip Pin
CodeItWell15-Apr-07 1:59
CodeItWell15-Apr-07 1:59 
AnswerRe: NotifyIcon baloon tip Pin
Guffa15-Apr-07 2:24
Guffa15-Apr-07 2:24 
GeneralRe: NotifyIcon baloon tip Pin
CodeItWell15-Apr-07 3:02
CodeItWell15-Apr-07 3:02 
GeneralRe: NotifyIcon baloon tip Pin
Guffa15-Apr-07 3:15
Guffa15-Apr-07 3:15 
AnswerRe: NotifyIcon baloon tip Pin
Luc Pattyn15-Apr-07 6:03
sitebuilderLuc Pattyn15-Apr-07 6:03 
QuestionCommunication with Bluetooth device via COM Port Pin
Adnan Siddiqi14-Apr-07 21:58
Adnan Siddiqi14-Apr-07 21:58 
QuestionHow can I communicate to the USB port? Pin
zeeShan anSari14-Apr-07 21:03
zeeShan anSari14-Apr-07 21:03 
AnswerRe: How can I communicate to the USB port? Pin
Wayne Phipps14-Apr-07 22:08
Wayne Phipps14-Apr-07 22:08 
Questionabout saving data into remote system Pin
upadesh14-Apr-07 20:21
upadesh14-Apr-07 20:21 
AnswerRe: about saving data into remote system Pin
Jun Du15-Apr-07 5:47
Jun Du15-Apr-07 5:47 
QuestionSMS receiver using C# Pin
fajrif14-Apr-07 20:14
fajrif14-Apr-07 20:14 

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.