Development Environment and Error CS0234

  • Thread starter Thread starter Doug Crabtree
  • Start date Start date
D

Doug Crabtree

I have a project that I am working on that whenever I change the form
controls, or any property on the form controls it rewrites the code for that
form.

I understand that it is supposed to do this. My problem is I have a dataset
that was created within the environment (not hard coded). It keeps putting
under the creation:

DataSetName = new NameSpace.DataSetNameType()

When I compile this, I get the following: This type or namespace
'namespace' name does not exist in the class or namespace
'namespace.namespace'

If I remove the "NameSpace." from "new NameSpace.DataSetNameType()" then it
compiles and runs fine. If I make any changes to the form I have to do it
all over again! Why is this happening?

Also, I don't know if it makes a difference, but I am using VisualSourceSafe
latest build.

Thanks,
Doug Crabtree
 
Oops.

First time I have ever named one of the form classes the same as the
namespace.

I renamed that class and Viola, the error went away.

Doug Crabtree
 
Back
Top