Be more than mobile, reach every Windows screen
Reach millions of players across phone, PC, and Xbox One
The Internet of your things
The world's most personal digital assistant
While am closing a form, Some times I am getting following exception
Value Dispose() cannot be called while doing CreateHandle().
I get this error at Dispose() method.
Can you suggest me, to avoid this error.
I found same problem when i use form X button on forms right hand corner.
"An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
Additional information: Value Dispose() cannot be called while doing CreateHandle()."
I try this solution and it works
I found 'form' property of "Cancel Button" which assign as 'None'.
I add new exit button and do exitbutton_click event In that i call function as
this exitbutton i link to 'form property Cancel Button'
It works well when i click on form X button.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?