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

@MelonWang1

Description

@MelonWang1

.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.

Metadata

Metadata

Assignees

Labels

area-DesignerSupportinvestigateItems we want to investigate before making a decision on an issue

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions