dotnet / dotnet/winforms

After Form rename cannot generate event handlers

Open
#8,912 6 comments 0 reactions 1 assignee Claimed by @KlausLoeffelmann View on GitHub
area-VSDesigner
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### Environment

Visual Studio 2022 17.5.3

### .NET version

.NET 6

### Did this work in a previous version of Visual Studio and/or previous .NET release?

_No response_

### Issue description

After a Form rename cannot generate any event handlers from properties view,

### Steps to reproduce

1. Create a .NET 6 Windows Forms project
2. Rename `Form1` to `MainForm`
3. Add a button to the form
4. Double click the button or try to add a Click event handler from Properties view.

### Diagnostics

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