Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXWIN0007: Invocation without Handle

In This Article

Severity: Warning

Calling a BeginInvoke or Invoke method for a control that has no handle associated with it causes an error. Always check the IsHandleCreated property to avoid this scenario.

#Invalid Code

C#
myControl.BeginInvoke(new Action(() => {
    // TODO
}));

#Valid Code

C#
if (this.IsHandleCreated) {
    this.BeginInvoke(new Action(() => {
        // TODO
    }));
}