✅ windows forms app on .NET framework
followed the guide from microsoft to make a button that says hello world when pressed and now i have 15 errors after typing 1 line of code and changing
namespace [???]
to something else and i have NO IDEA WHAT IM DOING WRONG16 Replies
anyone?
Make sure to include the required assemblies
System.Windows.Forms
and changing namespace [???] to something elsethe problem is that you did this you can't
why cant i
well, yo ushould be able to make it work, let me try something
btw forgot to say but it changed
is the current code
and im getting
in
line 18
Application.Run(new Form1());
^^^^^
that didnt workwell, you changed the namsespace
so it can't find
new Form1()
anymore. you moved it?
you need to change the namespace of
Program
to be the same one as Form1
the original namespace wasnt Form1
when you do
Application.Run(new Form1());
, it's looking for a thing called Form1
in your program
it's trying to look in the namespace WindowsFormsApp2
for Form1
im following a guide from microsoft 1 to 1 and its not working
but you moved it, presumably. it's in a different namespace now
so you need to change
namespace WindowsFormsApp2
to namespace HelloWorld
that way it will find Form1
in HelloWorld
, since that is where you put itoh