Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / May 2005

Tip: Looking for answers? Try searching our database.

Forms not recognised. Can only view their code, not designer.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Dyte - 20 May 2005 09:03 GMT
Sometimes in my project, some forms are not recognised as type "form". (They
are actually inherited from another one of my forms).

However, when this happens I can only view the code. The icon in the
Solution Explorer is the type for a module, not a form. It also happens
without my making any changes to the forms - i.e. I just open the Solution
one day, and they're broken. Normally I can make a few edits and get it
working, but then I rollback my changes (to what it was before) and it's
still working!

It seems to happen randomly for some forms and not others. This is strange
because they are all inherited from the same form.

At the moment it's a pain because half of the forms in my project think they
are modules :-(

Any ideas please?

Thanks,

Steve
Steve Dyte - 20 May 2005 09:41 GMT
We've managed to fix this now but still have no idea how it happened.

The fix was to remove one of the broken forms from the project and then
re-add it. This magically fixed all the broken forms!!

The solution was in the project file. The broken forms all had their type as
"Code". Looking in SourceSafe, this changed from "Form" yesterday, but I've
no idea why?? All I remember doing yesterday was adding a new "plain" form to
the project.

Steve
Marc Bernard - 20 May 2005 17:21 GMT
> Sometimes in my project, some forms are not recognised as type "form".
> (They
> are actually inherited from another one of my forms).

One of my favourite Visual Studio bugs...

You can fix this in the IDE.  Find your class:

MyClass : MyBaseClass

and cut/paste the MyBaseClass.  It should fix the icon in the Solution
Explorer.

Could be covered by this:

http://support.microsoft.com/default.aspx?scid=kb;en-us;838534

Marc

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.