❔ 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
first screenshot is the code behind, and second is the designer. I'm unsure on what's the problem
Thanks a lot for showing up
The problem is this is an uncompleted project, so I need to add it and continue building and finish it.
So when I click on the Form1.cs file, it opens a code file in the VS
But when I click on a file that has the same name Form1.cs but this time from VS it displays this
So I think both files should display the same, right?
there the designer (second screen) and codebehind (first screen)
I hope you got the idea?
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"
I'll check that actually
What, I didn't know that all I needed is to view the code that's all.
yup
the designer is the graphical overview of the form
the code behind is where your code actually is
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 😇
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.