❔ The easiest way to use a uncompleted project files in a new Windows Forms app

The file from uncompleted project opens a set of code using the Form1.cs file, but when I click on the same file in my original project, it displays the canvas instead as in the second screenshot.
14 Replies
SG97
SG972y ago
first screenshot is the code behind, and second is the designer. I'm unsure on what's the problem
The king of kings
Thanks a lot for showing up
The king of kings
The problem is this is an uncompleted project, so I need to add it and continue building and finish it.
The king of kings
So when I click on the Form1.cs file, it opens a code file in the VS
The king of kings
But when I click on a file that has the same name Form1.cs but this time from VS it displays this
The king of kings
So I think both files should display the same, right?
SG97
SG972y ago
there the designer (second screen) and codebehind (first screen)
The king of kings
I hope you got the idea?
SG97
SG972y ago
it's the same file in first screen, if you right click the code and select "View designer" does the second screen popup? or right click the Form1.cs in solution explorer and select "View designer"
The king of kings
I'll check that actually
The king of kings
What, I didn't know that all I needed is to view the code that's all.
SG97
SG972y ago
yup the designer is the graphical overview of the form the code behind is where your code actually is
The king of kings
So my mistake was, I was dabble clicking on the Form1.cs in the Solution Explorer and the white window was popping up and I wondered why couldn't I write code instead of this white window. Thanks a lot for fixing my issue, now I learned something new 😃 you're awesome at helping others 😇
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?