Click here to Skip to main content
15,906,625 members
Home / Discussions / C#
   

C#

 
GeneralRe: Framework 2.0 rendering problem Pin
Rei Miyasaka18-May-06 11:58
Rei Miyasaka18-May-06 11:58 
GeneralRe: Framework 2.0 rendering problem Pin
Phoen2518-May-06 12:37
Phoen2518-May-06 12:37 
GeneralRe: Framework 2.0 rendering problem Pin
Rei Miyasaka18-May-06 15:06
Rei Miyasaka18-May-06 15:06 
GeneralRe: Framework 2.0 rendering problem Pin
Phoen255-Jul-06 9:45
Phoen255-Jul-06 9:45 
GeneralRe: Framework 2.0 rendering problem Pin
Rei Miyasaka5-Jul-06 9:53
Rei Miyasaka5-Jul-06 9:53 
AnswerRe: Framework 2.0 rendering problem Pin
Nader Elshehabi16-May-06 11:52
Nader Elshehabi16-May-06 11:52 
QuestionListview 2.0 - SelectedIndexChanged Event Pin
Doncp16-May-06 10:40
Doncp16-May-06 10:40 
AnswerRe: Listview 2.0 - SelectedIndexChanged Event Pin
Rei Miyasaka16-May-06 11:38
Rei Miyasaka16-May-06 11:38 
I haven't used ListView in a long time, but my guess is that it's technically deselecting the selected item first so that it can fire the deselected event as well.

Given you don't want to take any action when nothing is selected, you could get around it by just saying this at the beginning of the method:

if(SelectedItems.Count == 0)
return;

Try to figure out the exact cause too though. It's always a good idea to know what caused a problem in the first place if you're using a workaround.
Questionbringing the form on top Pin
Rizwan Rathore16-May-06 10:37
Rizwan Rathore16-May-06 10:37 
AnswerRe: bringing the form on top Pin
Rei Miyasaka16-May-06 11:03
Rei Miyasaka16-May-06 11:03 
GeneralRe: bringing the form on top Pin
Rizwan Rathore16-May-06 11:27
Rizwan Rathore16-May-06 11:27 
GeneralRe: bringing the form on top Pin
Rei Miyasaka16-May-06 11:32
Rei Miyasaka16-May-06 11:32 
GeneralRe: bringing the form on top Pin
Rizwan Rathore16-May-06 11:35
Rizwan Rathore16-May-06 11:35 
GeneralRe: bringing the form on top Pin
Rei Miyasaka16-May-06 11:41
Rei Miyasaka16-May-06 11:41 
GeneralRe: bringing the form on top Pin
Rizwan Rathore16-May-06 11:53
Rizwan Rathore16-May-06 11:53 
QuestionDATA GRID in C# window application Pin
Faisal Khatri16-May-06 10:27
Faisal Khatri16-May-06 10:27 
AnswerRe: DATA GRID in C# window application Pin
Josh Smith16-May-06 10:59
Josh Smith16-May-06 10:59 
AnswerRe: DATA GRID in C# window application Pin
coolvinx16-May-06 11:11
coolvinx16-May-06 11:11 
Questionpdb file Pin
mehrdadc4816-May-06 10:03
mehrdadc4816-May-06 10:03 
AnswerRe: pdb file Pin
Michael P Butler16-May-06 10:17
Michael P Butler16-May-06 10:17 
Questionmulticast problem Pin
snouto16-May-06 9:38
snouto16-May-06 9:38 
AnswerRe: multicast problem Pin
Nader Elshehabi16-May-06 15:52
Nader Elshehabi16-May-06 15:52 
QuestionHelp with BGWorker Pin
student_rhr16-May-06 9:06
student_rhr16-May-06 9:06 
AnswerRe: Help with BGWorker Pin
led mike16-May-06 9:24
led mike16-May-06 9:24 
AnswerRe: Help with BGWorker Pin
Robert Rohde16-May-06 9:40
Robert Rohde16-May-06 9:40 

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.