I suspect a namespace error.
Is the Form in a namespace called WindowsApplication3
and the Program class in a namespace called WindowsFormsApplication3
by any chance?
Ensure you are using the same namespace for both, or alternatively add a using
to Program.cs to specify the correct namespace.