Strange problem - missing form
-
Hi! I'm having a very disturbing problem. I'm working in a program witch has several forms (windows forms) When I add a form to the project I can invoke that form from a menu (for instance) The problem is that as I start working in the form (adding controls, formatting then, etc) suddenly the form is no longer recognized and when invoked I got an error "Type frmForm1 is not defined" In this particular form I'm adding GroupBoxes, CheckBoxes, TextBoxes and Labels. I'm using VB .Net 2003 Can anyone help please? I'm tired of repeating the work all over again. TIA
-
Hi! I'm having a very disturbing problem. I'm working in a program witch has several forms (windows forms) When I add a form to the project I can invoke that form from a menu (for instance) The problem is that as I start working in the form (adding controls, formatting then, etc) suddenly the form is no longer recognized and when invoked I got an error "Type frmForm1 is not defined" In this particular form I'm adding GroupBoxes, CheckBoxes, TextBoxes and Labels. I'm using VB .Net 2003 Can anyone help please? I'm tired of repeating the work all over again. TIA
When you rename the form do you rename it in the solution box and takeaway the extesnion. i.e. rename from "Form1.vb" to "frmForm1" removing the ".vb" and clickiing yes to the message box. If so, the ".vb" must be on the end or as the message says, "the form may become unusable" Posted by John Cotterill (The ANZAC)
-
When you rename the form do you rename it in the solution box and takeaway the extesnion. i.e. rename from "Form1.vb" to "frmForm1" removing the ".vb" and clickiing yes to the message box. If so, the ".vb" must be on the end or as the message says, "the form may become unusable" Posted by John Cotterill (The ANZAC)
Hi John! Thanks for the reply. Answering to your question… The problem was not on the creation of the form. It was correctly created and I was able to work with it for a while until its reference was not found any more. But I already found the problem… While working in the form (applying controls, formatting them, renaming them, etc…). I accidentally renamed the form instead of the control I wanted to rename… And of course the reference to its previous name was lost… And I started everything with a new form and it happened again and so on… For three or four times before I posted this message… What are the odds of a thing like that happen? Jorge