Skip to content

Documentation does not mention the exceptions #2235

@timirons

Description

@timirons

Type of issue

Typo

Description

Special keys like Enter are not seen by KeyPreview, and you have to use ProcessCmdKey to catch them. This is not even hinted at, and the question of why it doesn't work is being asked repeatedly on StackOverflow.

Page URL

https://learn.microsoft.com/en-us/dotnet/desktop/winforms/input-keyboard/how-to-handle-forms

Content source URL

https://github.com/dotnet/docs-desktop/blob/main/dotnet-desktop-guide/winforms/input-keyboard/how-to-handle-forms.md

Document Version Independent Id

81be3ded-69e3-a5c2-fa7d-488bbe6af267

Platform Id

1ac0fdac-0037-9176-f1d0-dd36d7cb2c88

Article author

@adegeo

Metadata

  • ID: 81be3ded-69e3-a5c2-fa7d-488bbe6af267
  • PlatformId: 1ac0fdac-0037-9176-f1d0-dd36d7cb2c88
  • Service: dotnet-desktop
  • Sub-service: winforms

Related Issues


Associated WorkItem - 584924

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
🔖 Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions