Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

kianang

Technical User
Dec 2, 2002
23
SG
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 . Tha datagrid is located in tabcontrol .

Any help is appreciated. Thank you very much.

 
I get the exact same problem, with a datagrid on a tab control.

I have a tab control with multiple pages. Each page contains a datagrid. However, only two of the tab pages produce this error.

I have tried recreating the tab pages, the grids, the tab control, the datasets etc. None make any difference.

kianang,
Did you ever find a solution to this?

James Goodman MCSE, MCDBA
 
It is almost a year posted message and I stopped using VB.Net since Feb 2003

I finnally managed to solve the problem .

However , I can't remember what is root of cause and how to solve . The thing I can remember is the problem is related to form , datagrid and tab control. Hope this can narrow your troubelshooting . Sorry .

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top