dotnet / dotnet/wpf

error when use SendKeys.SendWait

Open
#11,313 3 comments 0 reactions 0 assignees View on GitHub
External Non-WPF Issue
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

after upgrade System.Drawing.Common from 9.0.11 to 10.0.0, SendKeys.SendWait throw exception 'The type initializer for 'System.Windows.Forms.SendKeys' threw an exception.'

### Reproduction Steps

simple use SendKeys referencing System.Drawing.Common from 10.0.0

### Expected behavior

not throw exception

### Actual behavior

throw exception

### Regression?

yes

### Known Workarounds

dont upgrade to System.Drawing.Common 10.0.0

### Impact

_No response_

### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.