Form disappeared

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon

    Form disappeared

    I posted this in another group, but it doesn't get much traffic, so I'm
    reporting here...

    I have a project with one form and several classes, etc. All of the sudden,
    today when I open the solution, the form no longer has a GUI design
    component to it. When I click on it, it only shows the source code and the
    icon has changed from the little form icon to a vb class icon. Any idea
    what on earth might have happened? I did a repair installation of VS.Net
    2003 and have rebooted, reloaded the solution a few times. Help, please!


    --
    *************** ******
    Jon Rosenberg



    AOL IM: QJ2X


  • Dean Sucks

    #2
    Form disappeared

    Keep your politcal crap out of the newsgroup. This not
    the place to promote your politcal garbage.
    [color=blue]
    >-----Original Message-----
    >I posted this in another group, but it doesn't get much[/color]
    traffic, so I'm[color=blue]
    >reporting here...
    >
    >I have a project with one form and several classes,[/color]
    etc. All of the sudden,[color=blue]
    >today when I open the solution, the form no longer has a[/color]
    GUI design[color=blue]
    >component to it. When I click on it, it only shows the[/color]
    source code and the[color=blue]
    >icon has changed from the little form icon to a vb class[/color]
    icon. Any idea[color=blue]
    >what on earth might have happened? I did a repair[/color]
    installation of VS.Net[color=blue]
    >2003 and have rebooted, reloaded the solution a few[/color]
    times. Help, please![color=blue]
    >
    >
    >--
    >************** *******
    >Jon Rosenberg
    >www.DeanForAmerica.com
    >www.OhioForDean.org
    >www.NEOhioForDean.com
    >AOL IM: QJ2X
    >
    >
    >.
    >[/color]

    Comment

    • Richard

      #3
      Re: Form disappeared

      Have you tried refeshing the solution explorer with the little refresh
      button at the top of the solution explorer panel??

      Often when the graphics and IDE behave that way its because you have a
      naming conflict with another class. Check to make sure you dont have
      two classes/forms with the same name..


      If worst comes to worst, just create a new form and cut and paste the
      old code into it after removing the default code.

      If you still have the problem there a good chance the problem lies in
      your class code not your IDE.

      HTH

      Richard

      "Jon" <ruffles_@msn.c om> wrote in message news:<O8FJN7AzD HA.4064@tk2msft ngp13.phx.gbl>. ..[color=blue]
      > I posted this in another group, but it doesn't get much traffic, so I'm
      > reporting here...
      >
      > I have a project with one form and several classes, etc. All of the sudden,
      > today when I open the solution, the form no longer has a GUI design
      > component to it. When I click on it, it only shows the source code and the
      > icon has changed from the little form icon to a vb class icon. Any idea
      > what on earth might have happened? I did a repair installation of VS.Net
      > 2003 and have rebooted, reloaded the solution a few times. Help, please![/color]

      Comment

      • Cor

        #4
        Re: Form disappeared

        Hi Jon,

        You changed somewhere a reference, the most easy could be that you deleted
        or changed the
        Inherits System.Windows. Forms.Form
        Or something

        I hope this helps?

        Cor
        [color=blue]
        > I have a project with one form and several classes, etc. All of the[/color]
        sudden,[color=blue]
        > today when I open the solution, the form no longer has a GUI design
        > component to it. When I click on it, it only shows the source code and[/color]
        the[color=blue]
        > icon has changed from the little form icon to a vb class icon. Any idea
        > what on earth might have happened? I did a repair installation of VS.Net
        > 2003 and have rebooted, reloaded the solution a few times. Help, please![/color]


        Comment

        • Tom Spink

          #5
          Re: Form disappeared

          Hi Jon, Perhaps your project file has gone up the .NET creek, with no System
          namespace. It's in there that all the types of object and whatnot are stored
          so that the IDE knows what to do with the code files... an interesting point
          is that your form class *must* be the first class to appear in the code
          file, if you want to use the designer, it must be above any other classes,
          but obviously after any "Imports" statements....

          ' === This is correct...

          Imports System

          Public Class MyForm
          Inherits Form

          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: Form disappeared

            * "Jon" <ruffles_@msn.c om> scripsit:[color=blue]
            > I have a project with one form and several classes, etc. All of the sudden,
            > today when I open the solution, the form no longer has a GUI design
            > component to it. When I click on it, it only shows the source code and the
            > icon has changed from the little form icon to a vb class icon. Any idea
            > what on earth might have happened? I did a repair installation of VS.Net
            > 2003 and have rebooted, reloaded the solution a few times. Help, please![/color]

            Right-click the form in the solution explorer, choose "Open with..."
            from its context menu and select the Forms editor (if available).

            --
            Herfried K. Wagner [MVP]
            <http://www.mvps.org/dotnet>

            Comment

            • Jon

              #7
              Re: Form disappeared

              Thanks to everyone who replied. Somehow, the Imports System statement
              disappeared. Adding it back in fixed the problem!

              Thanks again


              "Tom Spink" <thomasdotspink at@ntlworlddotc om> wrote in message
              news:ekRpjDHzDH A.1708@TK2MSFTN GP12.phx.gbl...[color=blue]
              > Hi Jon, Perhaps your project file has gone up the .NET creek, with no
              > System
              > namespace. It's in there that all the types of object and whatnot are
              > stored
              > so that the IDE knows what to do with the code files... an interesting
              > point
              > is that your form class *must* be the first class to appear in the code
              > file, if you want to use the designer, it must be above any other classes,
              > but obviously after any "Imports" statements....
              >
              > ' === This is correct...
              >
              > Imports System
              >
              > Public Class MyForm
              > Inherits Form
              > .
              > .
              > .
              > End Class
              >
              > ' ===
              >
              > --
              > HTH,
              > -- Tom Spink, Über Geek
              >
              > Please respond to the newsgroup,
              > so all can benefit
              >
              > " System.Reflecti on Master "
              >
              > ==== Converting to 2002 ====
              > Remove inline declarations
              >
              > "Jon" <ruffles_@msn.c om> wrote in message
              > news:O8FJN7AzDH A.4064@tk2msftn gp13.phx.gbl...[color=green]
              >> I posted this in another group, but it doesn't get much traffic, so I'm
              >> reporting here...
              >>
              >> I have a project with one form and several classes, etc. All of the[/color]
              > sudden,[color=green]
              >> today when I open the solution, the form no longer has a GUI design
              >> component to it. When I click on it, it only shows the source code and[/color]
              > the[color=green]
              >> icon has changed from the little form icon to a vb class icon. Any idea
              >> what on earth might have happened? I did a repair installation of VS.Net
              >> 2003 and have rebooted, reloaded the solution a few times. Help, please!
              >>
              >>
              >> --
              >> *************** ******
              >> Jon Rosenberg
              >> www.DeanForAmerica.com
              >> www.OhioForDean.org
              >> www.NEOhioForDean.com
              >> AOL IM: QJ2X
              >>
              >>[/color]
              >
              >[/color]


              Comment

              Working...