471,337 Members | 1,224 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

SelectedIndex change sub on a listbox

I'm having trouble debugging my code, and I'm starting to wonder if there
isn't bigger problems here...

I am populating a listbox with the following code:

IsBinding = False
Me.lstAmend.DataSource = _dvRPAmend
IsBinding = True
Me.lstAmend.DisplayMember = "Amend-CP"

I use 'IsBinding' because I have a sub when the SelectedIndex changes on
lstAmend (which is a listbox), and the sub will be called 2X with the above
lines of code, so instead, the sub only runs if IsBinding = True.

I'm having some big problems, and stepping through my code to see what's up.
When I step through the above code, the 2 lines that start with Me.lstAmend
SOMETIMES trigger the selectedIndex change....but not every time.

How is this possible??

Thanks..
Amber

Jul 25 '05 #1
0 931

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Russell Campbell | last post: by
1 post views Thread by bill yeager | last post: by
2 posts views Thread by MrSmoofy | last post: by
reply views Thread by amber | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.