Why am I getting this error and How can I correct it?
                form2 newF2;
    
                newF2 myform = new NewF2();
                myform.ShowDialog();

I have the above code.  I have a button in form1 that launches form2.  

I get the following error message "The type or namespace name could not be found (are you missing a using directive or an assembly reference?)

I have been trying to figure this out for about 2 hours and I have no clue why I am getting this error.  Both forms have the same namespace.  Any ideas?
Why am I getting this error and How can I correct it?
===

                form2 newF2;
    
                newF2 myform = new NewF2();
                myform.ShowDialog();

I have the above code.  I have a button in form1 that launches form2.  

I get the following error message "The type or namespace name could not be found (are you missing a using directive or an assembly reference?)

I have been trying to figure this out for about 2 hours and I have no clue why I am getting this error.  Both forms have the same namespace.  Any ideas?