I have a control that loads an image in the OnLoad and displays this image in OnPaint. However, when I try to use the control on a form, I can't view the form because of the following error:
Parameter is not valid.
at System.Drawing.Bitmap..ctor(String filename)
at Card_Creator.Item_Preview.Item_Preview_Load(Object sender, EventArgs e) in C:\Users\Jeremy\Desktop\SVN\Source Code\Card Creator\Card Creator\Item Preview.cs:line 72
I have seen this issue a few times in the office with trying to reference config files that are loaded in. Is there a way to work around this so I can load something in and not have the designer barf on it?