Error:Cannot call Invoke or InvokeAsync ...

  • Thread starter Thread starter Priya J
  • Start date Start date
P

Priya J

Guest
Hi,

I'm developing a data access application with VB .NET. I was adding some ontrols to the windows form and all of a sudden when I click view designer I get the following exception:

"InvalidOperationException: Cannot call Invoke or InvokeAsync for the control until a window handle has been created"

Does anyone know the cause or the cure?

Thanks
PJ
 
Try removing whatever control you added that is causing that error. You'll have to do this in code, of course.
 
Hi Divil,
Thanks for the reply..
The thing is I tried doing that as soon as I noticed the error.. but it didn't go away. So I'll probably have to roll back a lot to find ot that way and that's kinda nt possible at this stage. So I was wondering if there's another way to find out

PJ
 
Back
Top