Question Parameter is not valid


New member
Nov 8, 2017
Programming Experience
I have various components on a win form created using c#.
All was working well until last week when suddenly I started receiving "An unhandled exception of type 'System.ArgumentException' occurred in System.Drawing.dll" error.
Additional Information : Parameter is not valid.
This error happens in the designer part of the form in the InitializeComponent procedure.
The controls were dragged and dropped from the toolbox onto the form.
There is also no data binding of populating of the fields.
It also only happens to any form of input or interaction. This error does not occur when creating a label or group box etc.

Google offers no solution to this problem.


  • ExceptionError.png
    62.7 KB · Views: 75
Something somewhere has become corrupted. Here's something that I have tried in the past that has sometimes fixed issues like this:

1. Add a new project to your solution.
2. In the Solution Explorer, drag and drop the offending form to the new project to copy it.
3. Make any additional changes to the new project to make it build.
4. Delete the original form and Clean the solution from the Build menu.
5. Copy the form back into the original project from the new project.
6. Build and run the original project.

If that doesn't work then you may just have to recreate the form from scratch. If the issue persists in this project but not in others then you may have to recreate the project from scratch, although that may just involve copying existing project items.
Top Bottom