Is there a sub where you can put in a code when a listbox item is added?
( example )
Private Sub listboxitemadded(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles listbox1.listboxitemadded
my code...
End Sub
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would add all you LixtBox items into a generic BindingList. Then bind that list to your ListBox.
The BindingList has an event call ‘AddingNew’ that you can hook into to know when items have been added to the list.