G
Guest
Ok, this has got to be an IDE bug, but I can't seem to track down any
discussion on it. Perhaps I don't know the right words to search for.
This has happened occasionally for as long as I have been using VB.net, but
at the moment, I can't fix it any more:
For no apparent reason, all of a sudden, a windows form, which has been
working fine all along, will suddenly generate an error "XYZ is not a member
of myForm"
Now I look at the code, and there, in the declarations section of the form
is the line of code:
Private WithEvents XYZ as SomeControl
Looks like it is properly declared to me!!! The fix had always been to
delete this line of code and re-enter it. Poof - all errors go away,
everything is fine.
TODAY I CAN NO LONGER FIX IT.
The reason? As soon as I retype the line for XYZ, a DIFFERENT item pops up
as not being a member of a form. 'ABC is not a member of SomeForm"
I re-enter the line:
Private WithEvents ABC as SomeControl
and the ABC error goes away but the XYZ error returns! This is worse than
DLL Hell.
Has anyone seen this happen?
It also happens where Implementations are not 'seen' any more. I will have
at the top of the form,
Implements Ixyz
and the next line might be:
Sub foo () Implements Ixyz.abc
Yet the task list shows:
SomeForm must implemnt Sub abc for interface Ixyz!
I'm really stuck here today.
This is version 1.1.
discussion on it. Perhaps I don't know the right words to search for.
This has happened occasionally for as long as I have been using VB.net, but
at the moment, I can't fix it any more:
For no apparent reason, all of a sudden, a windows form, which has been
working fine all along, will suddenly generate an error "XYZ is not a member
of myForm"
Now I look at the code, and there, in the declarations section of the form
is the line of code:
Private WithEvents XYZ as SomeControl
Looks like it is properly declared to me!!! The fix had always been to
delete this line of code and re-enter it. Poof - all errors go away,
everything is fine.
TODAY I CAN NO LONGER FIX IT.
The reason? As soon as I retype the line for XYZ, a DIFFERENT item pops up
as not being a member of a form. 'ABC is not a member of SomeForm"
I re-enter the line:
Private WithEvents ABC as SomeControl
and the ABC error goes away but the XYZ error returns! This is worse than
DLL Hell.
Has anyone seen this happen?
It also happens where Implementations are not 'seen' any more. I will have
at the top of the form,
Implements Ixyz
and the next line might be:
Sub foo () Implements Ixyz.abc
Yet the task list shows:
SomeForm must implemnt Sub abc for interface Ixyz!
I'm really stuck here today.
This is version 1.1.