Click here to Skip to main content
15,884,472 members
Home / Discussions / C#
   

C#

 
Questionland phone call from pc Pin
rizvi_codeproject2-Mar-09 0:29
rizvi_codeproject2-Mar-09 0:29 
GeneralRe: land phone call from pc Pin
Kristian Sixhøj2-Mar-09 4:52
Kristian Sixhøj2-Mar-09 4:52 
Questionprocess details Pin
shefa' isied2-Mar-09 0:22
shefa' isied2-Mar-09 0:22 
AnswerRe: process details Pin
Luc Pattyn2-Mar-09 3:25
sitebuilderLuc Pattyn2-Mar-09 3:25 
QuestionDrag and drop to mouse point location Pin
Low Pei Yang2-Mar-09 0:03
Low Pei Yang2-Mar-09 0:03 
AnswerRe: Drag and drop to mouse point location Pin
Henry Minute2-Mar-09 10:51
Henry Minute2-Mar-09 10:51 
GeneralRe: Drag and drop to mouse point location Pin
Low Pei Yang2-Mar-09 16:13
Low Pei Yang2-Mar-09 16:13 
QuestionIComparer problem Pin
livez1-Mar-09 23:22
livez1-Mar-09 23:22 
Hello!

I'm trying to have a custom-sorter class to sort my objects.

I want my objects to always be in a certain order(not alphabetically).

In my Compare(object a, object b) method I check which objects they are and return 1 or -1 depending on which one I want to come first. How exactly does it work, do I return -1 if I want object a before object b in my collection? It doesn´t seem consistent to me, some values get sorted correctly and some don´t.
AnswerRe: IComparer problem Pin
CPallini1-Mar-09 23:42
mveCPallini1-Mar-09 23:42 
AnswerRe: IComparer problem Pin
DaveyM691-Mar-09 23:47
professionalDaveyM691-Mar-09 23:47 
AnswerRe: IComparer problem PinPopular
J4amieC2-Mar-09 0:13
J4amieC2-Mar-09 0:13 
GeneralRe: IComparer problem Pin
livez2-Mar-09 0:37
livez2-Mar-09 0:37 
AnswerRe: IComparer problem Pin
Luc Pattyn2-Mar-09 3:28
sitebuilderLuc Pattyn2-Mar-09 3:28 
QuestionC# Code Pin
Zeyad Jalil1-Mar-09 23:03
professionalZeyad Jalil1-Mar-09 23:03 
Answerrepost - Ignore Pin
J4amieC1-Mar-09 23:21
J4amieC1-Mar-09 23:21 
Questionexceptions Pin
aratireddy1-Mar-09 23:02
aratireddy1-Mar-09 23:02 
AnswerRe: exceptions Pin
Calin Tatar1-Mar-09 23:15
Calin Tatar1-Mar-09 23:15 
AnswerRe: exceptions Pin
N a v a n e e t h1-Mar-09 23:16
N a v a n e e t h1-Mar-09 23:16 
Answerrepost - ignore Pin
J4amieC1-Mar-09 23:22
J4amieC1-Mar-09 23:22 
Questionhow to add the subtitles in video Pin
Abhishek Rana1-Mar-09 23:02
Abhishek Rana1-Mar-09 23:02 
AnswerRe: how to add the subtitles in video Pin
Eddy Vluggen2-Mar-09 0:02
professionalEddy Vluggen2-Mar-09 0:02 
QuestionFind a file path with seatching it name Pin
abbd1-Mar-09 22:49
abbd1-Mar-09 22:49 
AnswerRe: Find a file path with seatching it name Pin
Calin Tatar1-Mar-09 22:52
Calin Tatar1-Mar-09 22:52 
QuestionRe: Find a file path with seatching it name Pin
abbd1-Mar-09 23:02
abbd1-Mar-09 23:02 
AnswerRe: Find a file path with seatching it name Pin
Alan N2-Mar-09 0:40
Alan N2-Mar-09 0: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.