The error Value Close() cannot be called while doing CreateHandle() usually happens when we try to close the form in the constructor or the Load event.
For example, the following code gives the error:
Solution : Add this line of code for closing the form in the form load and in the constructor.
Thanks....