Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Getting error when saving
When I open my form and put the mouse cursor into a field and change it, then put the cursor into another field and change it, then click on Save, I get this error:
"Collection was modified; enumeration operation may not execute."
If I Tab out of the fields with the Tab key I don't get this error.
I have run into this before and I've had to write code to set focus on a control then set focus on another control to get the data saved. I have lots of text entry fields on lots of forms and I really don't want to write code to fix this when my users are going to do this same kind of action.
Has anyone come up with a way to fix this?
Thanks.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement