Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Strange problem - missing form

Strange problem - missing form

Scheduled Pinned Locked Moved Visual Basic
helpcsharpwinformsquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CJotaO
    wrote on last edited by
    #1

    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

    T 1 Reply Last reply
    0
    • C CJotaO

      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

      T Offline
      T Offline
      The ANZAC
      wrote on last edited by
      #2

      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)

      C 1 Reply Last reply
      0
      • T 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)

        C Offline
        C Offline
        CJotaO
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups