Today seems to be a bad day for me... my time and effort are running out.
Having this scenario:
There is three Forms, First one appears as DialogBox and hides the second form (a child form).. asks the user to enter a password and if its correct then the first form (the DialogBox one) will close and the second form will appeare as a child in the thired form which is MDI form.
the problem is when a valid passowrd is enterd an win32Exception thrown. and if an invalid password entered in the first form (or cancel was clicked) an exception will says "Value Dispose() cannot be called while doing CreateHandle().".
See the attached picture. which demonstrates the state.
Thanks in advance for any help persists here.