Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

  • 1 month later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...