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

C#

 
GeneralRe: linking of forms Pin
nidhelp31-Jul-05 20:18
nidhelp31-Jul-05 20:18 
GeneralRe: linking of forms Pin
trevor_moody31-Jul-05 22:43
trevor_moody31-Jul-05 22:43 
GeneralRe: linking of forms Pin
nidhelp31-Jul-05 22:56
nidhelp31-Jul-05 22:56 
GeneralSorting Multiple Arraylists Pin
jgallen2331-Jul-05 17:50
jgallen2331-Jul-05 17:50 
GeneralRe: Sorting Multiple Arraylists Pin
Christian Graus31-Jul-05 20:00
protectorChristian Graus31-Jul-05 20:00 
GeneralRe: Sorting Multiple Arraylists Pin
jgallen2331-Jul-05 22:15
jgallen2331-Jul-05 22:15 
GeneralRe: Sorting Multiple Arraylists Pin
Kevin McFarlane31-Jul-05 22:26
Kevin McFarlane31-Jul-05 22:26 
GeneralRe: Sorting Multiple Arraylists Pin
Lars Niedziolka1-Aug-05 14:33
Lars Niedziolka1-Aug-05 14:33 
Example:
// Use struct or class. class are a bit more efficient than struct.
public struct My4Datas: IComparable
{
  public DateTime DateOfBirth;
  public string   FamilyName;
  public string   FirstName;
  public bool     Married;

  public My4Dates(DateTime dateOfBirth, string familyName, string firstName, bool married)
  {
    this.DateOfBirth = dateOfBirth;
    this.FamilyName = familyName;
    this.FirstName = firstName;
    this.Married = married;
  }

  public int CompareTo(object other)
  {
    return this.DateOfBirth.CompareTo(((My4Datas)other).DateOfBirth);
  }
};


Somewhere others:
ArrayList myList = new ArrayList();
myList.Add(new My4Datas(...));
myList.Add(new My4Datas(...));
myList.Sort();

foreach (My4Datas data in myList)
{
  string name = data.FirstName + " " + data.FamilyName;
}


Good Luck!

Niedzi
Generalwindow form Pin
ppp00131-Jul-05 17:28
ppp00131-Jul-05 17:28 
GeneralRe: window form Pin
Christian Graus31-Jul-05 20:03
protectorChristian Graus31-Jul-05 20:03 
GeneralMSN programming Pin
ppp00131-Jul-05 17:00
ppp00131-Jul-05 17:00 
GeneralRe: MSN programming Pin
Mohamad Al Husseiny1-Aug-05 10:08
Mohamad Al Husseiny1-Aug-05 10:08 
GeneralHID stuff (barcode scanner) Pin
Christian Graus31-Jul-05 16:42
protectorChristian Graus31-Jul-05 16:42 
Generalmulti-threads cooperation Pin
ppp00131-Jul-05 16:34
ppp00131-Jul-05 16:34 
GeneralRe: multi-threads cooperation Pin
S. Senthil Kumar31-Jul-05 20:37
S. Senthil Kumar31-Jul-05 20:37 
GeneralRe: multi-threads cooperation Pin
ppp0011-Aug-05 17:48
ppp0011-Aug-05 17:48 
GeneralRe: multi-threads cooperation Pin
S. Senthil Kumar1-Aug-05 18:23
S. Senthil Kumar1-Aug-05 18:23 
GeneralRe: multi-threads cooperation Pin
ppp0011-Aug-05 18:27
ppp0011-Aug-05 18:27 
GeneralText fonts to bitmap Pin
GalRatz31-Jul-05 9:15
GalRatz31-Jul-05 9:15 
GeneralRe: Text fonts to bitmap Pin
gnjunge31-Jul-05 9:26
gnjunge31-Jul-05 9:26 
GeneralRe: Text fonts to bitmap Pin
GalRatz31-Jul-05 9:59
GalRatz31-Jul-05 9:59 
GeneralRe: Text fonts to bitmap Pin
J4amieC31-Jul-05 23:26
J4amieC31-Jul-05 23:26 
QuestionExecutable file without .net framework, is it possible? Pin
Lexa198331-Jul-05 9:04
Lexa198331-Jul-05 9:04 
AnswerRe: Executable file without .net framework, is it possible? Pin
Judah Gabriel Himango31-Jul-05 16:16
sponsorJudah Gabriel Himango31-Jul-05 16:16 
AnswerRe: Executable file without .net framework, is it possible? Pin
Mohamad Al Husseiny1-Aug-05 5:23
Mohamad Al Husseiny1-Aug-05 5:23 

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.