Can't exit design mode because control can't be created

All controls must be instantiated before you can exit design mode. This error has the following causes and solutions:

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).