Hi Folks
I have an app I wrote last year as an exercise in C#. In it I used a List object to accumulate a group of records that I eventually printed out on a form.
Now I am revisiting it and I would like to add an Undo feature. But to make this work I need to know what the information was in the last record added. It's important because I need to learn what was in the destination field before the action (a drag and drop operation). I'd like to query the list and get the ID # (stored in the record) or the index of the last records added so I can access to the fields to read them, then use the index (or ID # to delete the record from the list. But I'm having a heckuva time trying to figure out how to do this.
Is there anyone that can drop a little sample gode on how to do this? My searches of the online resources aren't giving me the answers I need.
Thanks
Craig (Amesville)
I have an app I wrote last year as an exercise in C#. In it I used a List object to accumulate a group of records that I eventually printed out on a form.
Now I am revisiting it and I would like to add an Undo feature. But to make this work I need to know what the information was in the last record added. It's important because I need to learn what was in the destination field before the action (a drag and drop operation). I'd like to query the list and get the ID # (stored in the record) or the index of the last records added so I can access to the fields to read them, then use the index (or ID # to delete the record from the list. But I'm having a heckuva time trying to figure out how to do this.
Is there anyone that can drop a little sample gode on how to do this? My searches of the online resources aren't giving me the answers I need.
Thanks
Craig (Amesville)