Click here to Skip to main content
16,007,814 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to start another application and run it with in another application Pin
Kiran Satish29-Sep-04 5:29
Kiran Satish29-Sep-04 5:29 
GeneralRe: how to start another application and run it with in another application Pin
exhaulted29-Sep-04 5:33
exhaulted29-Sep-04 5:33 
GeneralHelp needed... how to write a 'close' handle in C# Pin
Kiran Satish27-Sep-04 12:01
Kiran Satish27-Sep-04 12:01 
GeneralRe: Help needed... how to write a 'close' handle in C# Pin
Alex Korchemniy27-Sep-04 16:38
Alex Korchemniy27-Sep-04 16:38 
GeneralRe: Help needed... how to write a 'close' handle in C# Pin
sreejith ss nair27-Sep-04 21:21
sreejith ss nair27-Sep-04 21:21 
GeneralRe: Help needed... how to write a 'close' handle in C# Pin
Kiran Satish28-Sep-04 12:59
Kiran Satish28-Sep-04 12:59 
GeneralUsing the method Sort in an ArrayList Pin
gijoebijoe27-Sep-04 11:52
gijoebijoe27-Sep-04 11:52 
GeneralRe: Using the method Sort in an ArrayList Pin
Colin Angus Mackay27-Sep-04 12:50
Colin Angus Mackay27-Sep-04 12:50 
If you look at MSDN you will see that there is a overloaded version of the sort method that takes an IComparer object. See: ArrayList.Sort(IComparer)[^]

If you look at the documentation for the IComparer[^] interface you will see that you can create your own customised sorting routines.

Something like this might work *
class DescendingEastingComparer : IComparer
{
    public int Compare(Point a, Point b)
    {
        return b.x - a.x;
    }
}


Then when you call sort all you need do is:
MyArrayList.Sort(new DescendingEastingComparer());



* DISCLAIMER: I typed this directly into the browser, it is not tested and is not guaranteed to work


Do you want to know more?

Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!


GeneralCodeProject ShoppingCart Probs Pin
Vector727-Sep-04 11:51
Vector727-Sep-04 11:51 
GeneralRe: CodeProject ShoppingCart Probs Pin
Colin Angus Mackay27-Sep-04 12:40
Colin Angus Mackay27-Sep-04 12:40 
GeneralXML Documentation in C# and enums Pin
Gary Paul27-Sep-04 10:28
Gary Paul27-Sep-04 10:28 
GeneralRe: XML Documentation in C# and enums Pin
Colin Angus Mackay27-Sep-04 12:53
Colin Angus Mackay27-Sep-04 12:53 
GeneralRe: XML Documentation in C# and enums Pin
Gary Paul28-Sep-04 4:21
Gary Paul28-Sep-04 4:21 
GeneralDataGrid Turning Off Row Headers Pin
MarkMokris27-Sep-04 10:09
MarkMokris27-Sep-04 10:09 
GeneralRe: DataGrid Turning Off Row Headers Pin
Brian Nottingham27-Sep-04 12:35
Brian Nottingham27-Sep-04 12:35 
GeneralRe: DataGrid Turning Off Row Headers Pin
MarkMokris27-Sep-04 15:54
MarkMokris27-Sep-04 15:54 
GeneralRe: DataGrid Turning Off Row Headers Pin
sreejith ss nair27-Sep-04 21:03
sreejith ss nair27-Sep-04 21:03 
GeneralRE: Passing Dataset Pin
pj_twitch27-Sep-04 10:07
pj_twitch27-Sep-04 10:07 
GeneralRe: RE: Passing Dataset Pin
sreejith ss nair27-Sep-04 21:08
sreejith ss nair27-Sep-04 21:08 
GeneralRE: Passing Dataset Pin
pj_twitch27-Sep-04 10:05
pj_twitch27-Sep-04 10:05 
GeneralPasting Copied Files into C# .NET App Pin
McClamm27-Sep-04 9:36
McClamm27-Sep-04 9:36 
GeneralRe: Pasting Copied Files into C# .NET App Pin
McClamm27-Sep-04 11:40
McClamm27-Sep-04 11:40 
GeneralForm Transparency Issues Pin
othell27-Sep-04 9:29
othell27-Sep-04 9:29 
QuestionDatagrid Secrets?????????? Pin
Neko0327-Sep-04 9:01
Neko0327-Sep-04 9:01 
AnswerRe: Datagrid Secrets?????????? Pin
MarkMokris27-Sep-04 10:07
MarkMokris27-Sep-04 10:07 

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.