TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
rulec444
NA
81
0
SelectedIndexChanged in WinFrms databind Listbox
Jun 10 2004 6:52 PM
I am having a problem with coding the SelectedIndexChange event on a listbox that's bound to data from a database. When I code the SelectedIndexChange event, it is fired when the listbox is populated with the data from the database, which results in a never ending loop and the application gets stuck. I really only want the event to fire when the user selects an item from the listbox, not when it is filled. I also tried SelectedValueChanged and this does the same thing. The combobox has a SelectionChangeCommitted event which works for that but the listbox doesn't have this. Are there any tricks around this? Thanks for your help.
Reply
Answers (
3
)
Posting Data from a Windows Form
.:Menu:.