Click here to Skip to main content
16,003,873 members
Home / Discussions / Windows Forms
   

Windows Forms

 
Generaldatagrid or dataset to excel file Pin
caradri17-Mar-08 3:39
caradri17-Mar-08 3:39 
GeneralRe: datagrid or dataset to excel file Pin
Giorgi Dalakishvili17-Mar-08 7:40
mentorGiorgi Dalakishvili17-Mar-08 7:40 
QuestionWhat thing is done from IStream::Read to IWMReaderCallbackAdvanced::OnStreamSample? Pin
markliu-codeproject16-Mar-08 22:09
markliu-codeproject16-Mar-08 22:09 
GeneralMDI Child Form Pin
divyesh143216-Mar-08 21:33
divyesh143216-Mar-08 21:33 
GeneralRe: MDI Child Form Pin
parth.p17-Mar-08 0:13
parth.p17-Mar-08 0:13 
GeneralRe: MDI Child Form Pin
divyesh143217-Mar-08 0:16
divyesh143217-Mar-08 0:16 
GeneralSortedList Pin
Anneke16-Mar-08 11:35
Anneke16-Mar-08 11:35 
GeneralRe: SortedList Pin
Luc Pattyn16-Mar-08 14:34
sitebuilderLuc Pattyn16-Mar-08 14:34 
Hi Anneke,

1.
There is some confusion I am afraid. It would help if you gave real names to the
listboxes for starters. Furthermore it seems to me you have a ProcesKlasse type (a class),
and a list of such items, that you call Proces.

This is confusing, and you are not helping yourself doing it this way. The better
approach would be to call the Proces thingies "Proces", and the list of Proces items
something like ProcesLijst. The list could actually be a List< Proces>
assuming you run .NET 2.0 or better; or else an ArrayList.

2.
You could sort a ProcesLijst by calling its Sort method and feeding it an object that
knows how to order two Proces items. That requires some class implementing the IComparer
interface, which is quite easy to do. It would just hold one method, something like:
public int Compare(Proces p1, Proces p2) {
    return p1.Aankomst-p2.Aankomst;   // only if Aankomst is an int
    // if not, whatever code that returns negative, zero or positive as required
}

BTW: the Proces arguments above are my Proces class, not your Proces list!
And that is why I don't have any trouble getting to their Aankomst member.

The above should put you on the right track.

Groeten!

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: SortedList Pin
Anneke18-Mar-08 9:13
Anneke18-Mar-08 9:13 
GeneralRe: SortedList Pin
Luc Pattyn18-Mar-08 13:00
sitebuilderLuc Pattyn18-Mar-08 13:00 
Generalunbound datagrid Pin
mr.me15-Mar-08 7:31
mr.me15-Mar-08 7:31 
GeneralRe: unbound datagrid Pin
Rocky#16-Mar-08 22:14
Rocky#16-Mar-08 22:14 
GeneralRe: unbound datagrid Pin
mr.me17-Mar-08 19:28
mr.me17-Mar-08 19:28 
GeneralRe: unbound datagrid Pin
Rocky#17-Mar-08 21:21
Rocky#17-Mar-08 21:21 
GeneralRe: unbound datagrid Pin
mr.me18-Mar-08 9:37
mr.me18-Mar-08 9:37 
GeneralRe: unbound datagrid Pin
Rocky#18-Mar-08 20:12
Rocky#18-Mar-08 20:12 
GeneralRe: unbound datagrid Pin
mr.me19-Mar-08 6:48
mr.me19-Mar-08 6:48 
Generalcrystal report Pin
Naresh12345678915-Mar-08 3:21
Naresh12345678915-Mar-08 3:21 
GeneralRe: crystal report Pin
Herman<T>.Instance1-Apr-08 23:43
Herman<T>.Instance1-Apr-08 23:43 
GeneralDatagridview Refresh Control Problem Pin
soniasan14-Mar-08 22:37
soniasan14-Mar-08 22:37 
GeneralRe: Datagridview Refresh Control Problem Pin
Herman<T>.Instance1-Apr-08 23:47
Herman<T>.Instance1-Apr-08 23:47 
GeneralProblem with DataGridViewComboBoxColumn - try to disable/hide already selected values [modified] Pin
Skeletor2314-Mar-08 11:43
Skeletor2314-Mar-08 11:43 
GeneralStrange Error on Data Bound ComboBox Pin
Brady Kelly13-Mar-08 7:43
Brady Kelly13-Mar-08 7:43 
GeneralRe: Strange Error on Data Bound ComboBox Pin
led mike14-Mar-08 4:58
led mike14-Mar-08 4:58 
GeneralRe: Strange Error on Data Bound ComboBox Pin
Brady Kelly16-Mar-08 22:27
Brady Kelly16-Mar-08 22:27 

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.