Error : Cannot call Invoke or InvokeAsync ......

desmondtan

Freshman
Joined
Dec 24, 2002
Messages
40
I received an error -

"The following exception has occured:
InvalidOperationException: Cannot call Invoke or InvokeAsync on a control until the window handle has been created."

The errors seems only appeared after I closed the runtime program and when I closed VS.NET .

I suspected that this is data grid and tab control problem . Thedatagrid is located in tabcontrol .

Any help is appreciated. Thank you very much.







Inappropriate post?
If so, Red Flag it!
 
Cannot call Invoke or InvokeAsync...

I had this error also and it acted in the same way. After thoroughly going through my form, I discovered that I had created an SQLCommand and then not put it to use.

After I deleted the SQLCommand and code, the error was resolved.

Hope that helps you.
 
Back
Top