The type or namespace name 'Screen' does not exist in the namespace 'System.Windows.Forms'
no clue why
code:
11 Replies
i think you need to enable Windows Forms in your project
can you show your project file
how can I do that in jetbrains rider?
yes, can you right click on it and press edit project file
it opens up this
change
net8.0
to net8.0-windows
then, bellow <Nullable>enable</Nullable>
, add <UseWindowsForms>true</UseWindowsForms>
great! tysm
I moved from knowing a bit of python and javascript straight up to csharp so I'm getting used to things
What are you trying to make??
color detection program
For? o.o
fun
and practice
I started learning c# yesterday and I made that (with a little help of gpt, nothing crazy though :p)