Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hi..

 

After installing the .net 2003 and loading my project (orginally coded in 2001) everything seemed fine until I added a new windows form to the project. The new form is fine (designer and code are all there) but whenever I try and instantiate the new form from my original "menu" form .net can't find it (either in the IDE intellisense or at runtime).

 

The new form is definately in the same project (and the same namespace etc..) as the "menu" calling form, it's shown in the IDE under the project and I can edit it both in design and code and everything looks great.. until I try to use it that is, like so

 

Form nextMenu = new frmNew();

 

at which point (when I type "frmNew") .net seems to think the new form (frmNew) doesn't exist and ignores it totally both in the IDE and at build time.

 

Is this a bug with 2003 or is there something more obvious I'm missing ? Has anyone else had this problem ?

 

Thanks

 

Slippery

Edited by Slippery
Posted

Hi..

 

I've compared the code for a form that works and the one that doesnt and it's identical.

 

Each form is a standard form class inherited from Windows Forms. There is nothing strange about them as far as I can see.

 

I'll cut the project down and post a copy of it to see if anyone has the same behaviour.

 

To confuse this even further.. I add a new form in the designer to the project (nothing more added to it at all.. everything was left as it was created) and I can't see that one either when I try to instantiate it (it's in the designer, code view and project list)

 

Strange !

 

Slippery

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...