Spurious error message

M

Mike W

VB .NET 2003:

When I click on the Start button (>) in Visual Studio to run my project, I
get several messages in the Task List window. The first says:

C:\code\CaliberGenerator\Inherited Forms\frmDepartmentSummary.vb(278):
'frmDeptUpdate' is not a member of 'CaliberGenerator.frmMDIParent'.

However, in the frmMDIParent Class, at the beginning (just under "Public
Class frmMDIParent"), there is the line:
Public frmDeptUpdate As frmDepartmentUpdate

So frmDeptUpdate IS IN FACT a member of CaliberGenerator.frmMDIParent.

If I select "Rebuild CaliberGenerator" from the Build menu, the Build
succeeds and the there are no messages in the Task List window.

Does anyone know how to prevent the spurious error message?
 
H

Herfried K. Wagner [MVP]

Mike W said:
When I click on the Start button (>) in Visual Studio to run my project, I
get several messages in the Task List window. The first says:

C:\code\CaliberGenerator\Inherited Forms\frmDepartmentSummary.vb(278):
'frmDeptUpdate' is not a member of 'CaliberGenerator.frmMDIParent'.

However, in the frmMDIParent Class, at the beginning (just under "Public
Class frmMDIParent"), there is the line:
Public frmDeptUpdate As frmDepartmentUpdate

So frmDeptUpdate IS IN FACT a member of CaliberGenerator.frmMDIParent.

If I select "Rebuild CaliberGenerator" from the Build menu, the Build
succeeds and the there are no messages in the Task List window.

Does anyone know how to prevent the spurious error message?

Delete your project's "bin" and "obj" directories and try again.
 
M

Mike W

I had to close the project to delete those folders.

So I did and reopened it and then the project ran.

Then I changed some code and tried to run again and the same spurious
messages are coming up again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top