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. C#
  4. How does one regenerate a form?

How does one regenerate a form?

Scheduled Pinned Locked Moved C#
3 Posts 3 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.
  • L Offline
    L Offline
    Lecutus1
    wrote on last edited by
    #1

    How does one regenerate a form? I had a form up and running, did a save and then nothing. The form reapeared with no controls on it. I checked the Code view and all the code was there. I checked the form.designer.cs, all the descriptors for all the boxes, control, and everything else were there. So why isn't being seen. This is the second this has happened. I dont want to recreate the whole project. How can I "turn on" or recreate this form? I'm using VS2005 Standard Thanks

    L D 2 Replies Last reply
    0
    • L Lecutus1

      How does one regenerate a form? I had a form up and running, did a save and then nothing. The form reapeared with no controls on it. I checked the Code view and all the code was there. I checked the form.designer.cs, all the descriptors for all the boxes, control, and everything else were there. So why isn't being seen. This is the second this has happened. I dont want to recreate the whole project. How can I "turn on" or recreate this form? I'm using VS2005 Standard Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Check the constructor of your form, it should contain a call to InitializeComponent();.

      I are troll :)

      1 Reply Last reply
      0
      • L Lecutus1

        How does one regenerate a form? I had a form up and running, did a save and then nothing. The form reapeared with no controls on it. I checked the Code view and all the code was there. I checked the form.designer.cs, all the descriptors for all the boxes, control, and everything else were there. So why isn't being seen. This is the second this has happened. I dont want to recreate the whole project. How can I "turn on" or recreate this form? I'm using VS2005 Standard Thanks

        D Offline
        D Offline
        Dan Neely
        wrote on last edited by
        #3

        Lecutus1 wrote:

        I dont want to recreate the whole project.

        Get the version of the form immediately prior to your latest change from source control. You are using source control. Right? :doh:

        Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

        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