I've noticed that when you load a form (In this instance frm.ShowAndWait) it appears that the order the code gets executed is different to other general platforms. Here are some steps to describe what I mean:
- I create a customlistview and populate it with checkboxes where the label is the name and surname of a user i get from a database
- There is a field in the database that tells me whether the checkbox must be checked or not when the list is populated
- Only once the list has finished loading everything, does the code then go to the chkUsers_CheckedChange sub and run any code that is in that in that sub where the user is checked