Click here to Skip to main content
15,910,981 members
Home / Discussions / C#
   

C#

 
QuestionHi, How can I set priority for some Timer's events? Pin
hasi2715-Apr-07 4:45
hasi2715-Apr-07 4:45 
AnswerRe: Hi, How can I set priority for some Timer's events? Pin
Jun Du15-Apr-07 5:31
Jun Du15-Apr-07 5:31 
AnswerRe: Hi, How can I set priority for some Timer's events? Pin
S. Senthil Kumar15-Apr-07 5:39
S. Senthil Kumar15-Apr-07 5:39 
AnswerRe: Hi, How can I set priority for some Timer's events? Pin
Luc Pattyn15-Apr-07 6:20
sitebuilderLuc Pattyn15-Apr-07 6:20 
Questionconvert an expresion in a result Pin
xtremetechnology15-Apr-07 3:17
xtremetechnology15-Apr-07 3:17 
AnswerRe: convert an expresion in a result Pin
Jun Du15-Apr-07 5:19
Jun Du15-Apr-07 5:19 
GeneralRe: convert an expresion in a result Pin
xtremetechnology15-Apr-07 5:38
xtremetechnology15-Apr-07 5:38 
GeneralRe: convert an expresion in a result Pin
Jun Du15-Apr-07 6:12
Jun Du15-Apr-07 6:12 
AnswerRe: convert an expresion in a result Pin
Jaiprakash M Bankolli15-Apr-07 7:39
Jaiprakash M Bankolli15-Apr-07 7:39 
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 

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.