Click here to Skip to main content
16,022,259 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
On startup the screen that is supposed to appear does not in a C# Windows Form Application running VS2022

What I have tried:

Many things including recompile etc.
Posted
Updated 2-May-23 5:11am

1 solution

If you mean the wrong Form is displayed, then it's simple: open the Program.cs file for the startup project (you'll find it in the Solution Explorer pane) and change the Application.Run call:
C#
Application.Run(new FormYouGetAtTheMoment());
To
C#
Application.Run(new FormYouWantToStartWith());
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900