❔ Windows Form App shows nothing

is there a reason why when i run the windows form app nothing that i have in the form.cs[Design} shows up and its just a blank app? Here's the code i have
3 Replies
TheBoxyBear
TheBoxyBear2y ago
You need to call InitializeComponent at the start of the constructor If you look in the Designer.cs file, you see it contains the body of that method
Creative9905
Creative99052y ago
You're right. I opened up a new windows form app and it had that in the code. Thanks for the tip @TheBoxyBear
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.