James Medlock
James Medlock

Reputation: 23

Windows form app elements not showing in c# file

I'm in Visual Studio 2019. I'm following along with an instructional video on creating a simple Windows Forms C# app. I've added some elements like buttons and labels and texts fields from the toolbox, and I've saved. But when I flip over to the C# file, I don't see any code related to these. The video (and other similar videos) seem to show that if the user looks there, they will see the methods already there, reflecting what was done in the GUI. Why would I not see the same thing?

Upvotes: 2

Views: 1065

Answers (1)

VCW
VCW

Reputation: 34

Example Form:

enter image description here

When you double click on button from design click event code generate automatically:

enter image description here

If you go to properties of button then to events: you can see click event with method name

enter image description here

Upvotes: 1

Related Questions