dotnet / dotnet/winforms

Derived form is write protected

Open
#8,882 6 comments 1 reaction 0 assignees View on GitHub
area-VSDesigner
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### Environment

Visual Studio 2022 - Community Edition, Version 17.5.2

### .NET version

.Net 7.0

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

Yes: With Visual Studio 2019 and .Net Framework 4.6.2

### Issue description

A derived form cannot be edited with VS 2022:

See attached project:

- BaseForm.cs: is the base form class
- BaseMDIChild.cs: inherits from BaseForm.cs
- BaseMDIERPDataChild.cs: inherits from BaseMDIChild.cs

This form seems to be write protected. You cannot insert any control.

### Steps to reproduce

1. Open the project, compile it
2. Open the form BaseMDIERPDataChild.cs and try inserting a control

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