Skip to content

Enable cross-thread checks by default #832

Description

@kevingosse

Cross-thread checks are disabled by default in Winforms, unless a debugger is attached or Control.CheckForIllegalCrossThreadCalls is explicitly set to true. I understand that back in the days it had been designed this way because it was a huge breaking change for .net 1.1 applications.

Now the landscape has changed quite a bit, and developers coming from WPF take those checks for granted and wrongly assume that they're activated by default in Winforms:

I think this is a nice opportunity to fix this behavior and set CheckForIllegalCrossThreadCalls to true by default, as most developers would expect nowadays.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions