VB Form forgets it is one

From: Jeff Mason (je.mason_at_comcast.net)
Date: 05/27/04


Date: Thu, 27 May 2004 17:14:37 GMT

I am using VS2003 and have a VB solution with several assemblies. One of them
contains several forms and it seems that randomly, a few of those forms will "forget"
that they are forms and display in the solution view as though they were classes. I
am unable to view them with the form designer, since VS apparently is convinced these
are classes and not forms.

If I inspect the project file "offline", I can see in the <files> section that the
subtype of the offending forms has been mysteriously changed to "Code". If I
manually edit the project file and change this back to "Form" like the others in the
assembly, all appears well, at least for a while until the forms revert back. It
seems that it is always the same few forms that exhibit this behavior. I am unable
to say for certain what I may be doing that causes this - it appears to be random.

I also notice that if I do things like rebuild the solution, exit VS and re-enter and
then rebuild (sometimes more than once) the problem will also go away for a while,
but eventually it will return.

Anybody seen this behavior or have an explanation, and more importantly, a way to
make it stop doing this??

Thanks for any help...



Relevant Pages

  • Re: Debugging 3rd party (or Microsoft) assemblies
    ... debugging 3rd party components. ... may occur within that 3rd party component. ... disassemble the 3rd party assembly and then rebuild it with debug ... don't have to rebuild a large tree of assemblies. ...
    (microsoft.public.dotnet.general)
  • Re: solidworks2006 vs inventor11
    ... that I would save an assembly, be sure to rebuild etc. and that there ... the project the next time that there would be little red flags, ... always involving some constraint problem that didn't not show up before ... assemblies the more problems that I have seen with IV. ...
    (comp.cad.solidworks)
  • Re: Mates breaking?
    ... > CTRL-Q does a forced rebuild. ... This is sometimes limited in assemblies. ... 'forces rebuild of top assembly and all subassemblies ...
    (comp.cad.solidworks)
  • Re: SerializationException: Cannot find the assembly... - Wrapper.zip [1/1]
    ... >> client is called FooClient and connects to FooServer. ... >> the server. ... >> class that existed in two different assemblies instead ... I can rebuild and change ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Auto Increment Version in VB 2005
    ... I agree with his statement 99%, especially when you don't rebuild all ... related projects at the same time. ... You want the referencing assemblies to break if you make ... Is also a bug waiting to happen, if you make a "material" change in one ...
    (microsoft.public.dotnet.languages.vb)