ArgumentException when openning a form from another form

Abdoul Rahim

Oct 16, 2017
Programming Experience
I have an error message each time i want to open a form from another form. I wrote the code to open the form correctly but i don't know what is the problem.
this is the error i receive:

An unhandled exception of type 'System.ArgumentException' occurred in System.Drawing.dll

The code that is generating the exception is not there. That Exception Assistant window has a View Details link on it for a reason. You should use it. At the very least, you can provide us with more useful information. The StackTrace of the exception will tell where it actually gets thrown and you can then show us that code, if you can't work out the issue for yourself.
Top Bottom