|
-
Feb 27th, 2020, 09:15 PM
#1
Thread Starter
New Member
[RESOLVED] "Collection was modified: enumeration operation may not execute" VS 2012 AGAIN!
Ok, my issue is back with the exact same project, BUT this time I discovered something entirely new!
If you remember, my isue was getting the above message on a project where the details said something about the problem being with Form1 and hiding it.
I wasn't trying to hide it but close it after the splash screen display time expired in my application properties of the project.
I have been working on this project extensively and finally learned that IF I remove the drawn rectangle around Form1 and re-compile, the error goes away entirely!
I am just using the Visual Basic Power Packs that is in VS 2012 to draw the rectangle. Somehow when you close or hide a form with a rectangle (I haven't tried anything else) you get that error.
Has anyone heard of such thing? The computer that I am trying to run the executable on has Visual Basic Power Packs 10.0 installed on it.
Am I forgetting to include anything?
Let me know what else you may need to assist.
Thanks
-
Feb 28th, 2020, 04:00 AM
#2
Re: "Collection was modified: enumeration operation may not execute" VS 2012 AGAIN!
Really we need to see you code otherwise we are just guessing we need to see you form load and close code !!
Please Mark your Thread "Resolved",  if the query is solved & Rate those who have helped you
-
Feb 28th, 2020, 07:08 AM
#3
Thread Starter
New Member
Re: "Collection was modified: enumeration operation may not execute" VS 2012 AGAIN!
 Originally Posted by NeedSomeAnswers
Really we need to see you code otherwise we are just guessing we need to see you form load and close code !!
Extensively searching I found the answer:
http://http://www.vbforums.com/showthread.php?676983-RESOLVED-Unhandled-exception-on-form-closing
All I had done was a project with 2 forms. One form was the splash and the other the main. I put a rectangle on the splash form and used code to have it close after 5 seconds then display the main. Nothing else - absolutely no other controls on either form.
Thanks anyway.
This is resolved.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|