Triggering an event from a listbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

How can I capture data in a listbox that occurs BEFORE the selected item
switches from one item to another?

myListbox.validating triggers after the user has left the listbox.

myListBox.selectedIndexChanged doesn't trigger until after the user has
selected a new item.

I want to code a "You have made changes to the current item, do you want to
save?" - but I can't seem to trigger an event that captures the selected
record, before the next record is selected.

Any suggestions?

Thanks,
Amber
 
Hello amber,

Save current state of myListBox after form is loaded, and on form close check
what have been changed.

a> How can I capture data in a listbox that occurs BEFORE the selected
a> item switches from one item to another?
a>
a> myListbox.validating triggers after the user has left the listbox.
a>
a> myListBox.selectedIndexChanged doesn't trigger until after the user
a> has selected a new item.
a>
a> I want to code a "You have made changes to the current item, do you
a> want to save?" - but I can't seem to trigger an event that captures
a> the selected record, before the next record is selected.

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Back
Top