dotnet / dotnet/project-system

The running Form isn't keeping consistent with "Startup object" choosing Form

Open
#9,331 0 comments 0 reactions 1 assignee Claimed by @melytc View on GitHub
Area-VisualBasic Feature-Project-Properties-Designer Feature-WinForms Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

## Minimal Reproduction Scenario
1. Create a WinForms .Net Core VB application with three Form designers, and added several controls for each Form designer
2. Go to app's Properties ->Application page
3. Switch the Form in the **Startup object**
4. Run the project directly -- **this is necessary step.**
5. Repeat the steps **3 & 4**
6. Observer the results between running Form and **Startup object** choosing Form

## Current Behavior
The running Form isn't keeping consistent with "Startup object" choosing Form
![Core](https://github.com/dotnet/project-system/assets/38325459/d0fb4c7e-4e89-40b2-9250-009521cf1e9c)

## Expected Behavior
The running Form should keep consistent with "Startup object" choosing Form
![Framework](https://github.com/dotnet/project-system/assets/38325459/e6b0bfbc-270f-490d-9181-4bc3eb87c35c)

## Test Environment
Dev17 17.9.0 Preview 2.0 [34313.131.main]

## Have you experienced this same issue with .NET Framework designer?
No

## Have you experienced this same issue with previous previews of VisualStudio?
No, this issue can't reproduce on Dev17 17.7.6 which own the old template.
![BeforeTemplate](https://github.com/dotnet/project-system/assets/38325459/100c13d0-1199-4047-90bd-f50552af878a)

## More Info
1. The issue can't reproduce on .NET Framework with new template.
2. The issue can't reproduce if saving before running the project.

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.