By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,453 Members | 3,183 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,453 IT Pros & Developers. It's quick & easy.

Triggering an event from a listbox

P: n/a
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
Apr 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Apr 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.