I keep getting a "System InvalidOperationException occurred in System Windows Forms dll" error in VB

Posted by Heartrent on Stack Overflow See other posts from Stack Overflow or by Heartrent
Published on 2010-06-07T22:01:58Z Indexed on 2010/06/08 0:22 UTC
Read the original article Hit count: 598

Filed under:

I've just started learning VB.NET with VS 9.0; a small application I'm working on keeps returning an "A first chance exception of type System InvalidOperationException occurred in System Windows Forms dll" error from the Immediate Window. The application has almost zero functionality so far, it consists of a menu strip with:

File  About
 |Open
 |Save
 |Save As
 |Quit

The only code I have written opens an Open File dialog, a Save As dialog, an About window with background sound and an OK button, and the Quit button which exits.

Since there is almost no code for me to search through, I can't understand why there would be an error. The program runs just fine when I'm debugging it too.

© Stack Overflow or respective owner

Related posts about vb.net