question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[LOC] KeysConverter returns "None" for Windows.Forms.Keys::None in all languages

See original GitHub issue

Which files are affected?

Previously reported at https://github.com/File-New-Project/EarTrumpet/issues/548. Related area https://github.com/dotnet/winforms/issues/8440.

Steps to reproduce:

  1. Log into a non-English machine
  2. Run the following PowerShell snippet:
[Reflection.Assembly]::LoadFile("C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.10\System.Windows.Forms.dll") | Out-Null
$Converter = New-Object Windows.Forms.KeysConverter
$Converter.ConvertToString($Null, [System.Globalization.CultureInfo]::CurrentUICulture, [Windows.Forms.Keys]::None)
  1. Observe None output

Which languages are affected?

All non-English

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
elachlancommented, Jan 27, 2023

Could you please bring that up in the PR?

0reactions
dreddy-workcommented, Jan 28, 2023

addressing in #8401.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeysConverter Class (System.Windows.Forms)
Returns whether this converter can convert the object to the specified type. (Inherited from TypeConverter). Compare(Object, Object). Compares two key values ...
Read more >
Form.cs - Reference Source - Microsoft
FromHandleInternal(hwnd); if (c != null && c is Form) { return(Form)c; } ... Gets the currently active multiple document interface (MDI) child window....
Read more >
KeysConverter.ConvertFrom(ITypeDescriptorContext ...
The ConvertFrom method is specialized to convert objects of type String or Enum array. In this case, it will return an object of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found