Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.
Syntax
| Visual Basic (Declaration) | |
|---|
Public ReadOnly Property InvokeRequired As System.Boolean |
| C# | |
|---|
public System.bool InvokeRequired {get;} |
Property Value
true if the control's
System.Windows.Forms.Control.Handle was created on a different thread than the calling thread (indicating that you must make calls to the control through an invoke method); otherwise, false.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also