Skip to content

'Object reference not set to an instance of an object.' occurs after add ToolStripMenuItem then click other area or 'type here' in DemoConsole application #13286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MelonWang1 opened this issue Apr 10, 2025 · 0 comments
Assignees
Labels
area-DesignerSupport investigate Items we want to investigate before making a decision on an issue
Milestone

Comments

@MelonWang1
Copy link
Contributor

MelonWang1 commented Apr 10, 2025

.NET version

main branch of WinForms repo

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No, the "type here" is not support in previous version, regress after PR 13093 merged.

Issue description

'Object reference not set to an instance of an object.' occurs after add ToolStripMenuItem then click other area or 'type here'.

Image

null.reference.mp4

Steps to reproduce

Test sample: DemoConsole bases on main branch in Winforms repo.

More info:

  1. This issue only repro in MenuStrip control in DemoConsole application.
@MelonWang1 MelonWang1 added area-DesignerSupport untriaged The team needs to look at this issue in the next triage labels Apr 10, 2025
@MelonWang1 MelonWang1 changed the title 'Object reference not set to an instance of an object.' occurs after add ToolStripMenuItem then click other area or type here 'Object reference not set to an instance of an object.' occurs after add ToolStripMenuItem then click other area or 'type here' in DemoConsole application Apr 10, 2025
@Tanya-Solyanik Tanya-Solyanik added this to the 10.0 Preview4 milestone Apr 10, 2025
@Tanya-Solyanik Tanya-Solyanik added investigate Items we want to investigate before making a decision on an issue and removed untriaged The team needs to look at this issue in the next triage labels Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DesignerSupport investigate Items we want to investigate before making a decision on an issue
Projects
None yet
Development

No branches or pull requests

3 participants