I’m working on something in c# and I get an error when I try to execute this code
Code:
Form form3 = new Form3();
form3.Show;
Heres the error I get
Error:
only assignment ,call ,increasement ,decreasement ,and new object expressions
can be used as a statement
I usually dont get this error when I’m coding
& thanks in advance
form3.Showlooks like the culprit. It should beform3.Show(). Without the parens it doesn’t execute the method.