Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

Jawab Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

  • domingo, 29 de julio de 2012 6:26
     
     
    somebody pless help me on this topic....
    • Cambiado Noah Falk - MSFTMicrosoft Employee martes, 31 de julio de 2012 23:03 Assuming this is the Windows Forms control you are refering to, you will probably get a better response in the windows forms forum (From:Building Development and Diagnostic Tools for .Net)
    •  

Todas las respuestas

  • domingo, 29 de julio de 2012 11:15
     
     Respondida
    The object you are using hasn't been initialize with a NEW statement.  You probably have a typo error in you program.  A window object like a control has a handle number which is the window number or process number.  An variable that hasn't been set to a value is pointing to NULL so it won't have a handle number.  I suspect you have a NULL object which is giving the error message.

    jdweng