Results 1 to 7 of 7

Thread: [RESOLVED] All child controls disappeared

  1. #1

    Thread Starter
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Resolved [RESOLVED] All child controls disappeared

    In the project I'm working on, I was editing a class and when I got done, I clicked save all. I moved on to my main form's designer. When it came up, the custom tab control I have on the form was blank. There used to be a ton of controls in it, so I am extremely confused about where everything went.

    I checked the properties window and it thinks everything is still there:



    But when I check the Document Outline window, everything is gone. The tab control is still there, "AVERT Wizard", but all of it's child controls and tab pages are gone.



    Even the event handlers are still there within the code and the project builds and runs just fine, but the controls are still missing. When I run the project and click a button to change the tab page, an exception isn't thrown. So it seems like VS thinks everything is there, with the exception of Document Outline.

    Does anyone have any ideas about how to fix this? I really don't want to have to manually re-do every control. That would be extremely time consuming.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: All child controls disappeared

    try closing your form + then reopening it + if that doesn't work, close + reopen your project

  3. #3

    Thread Starter
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: All child controls disappeared

    Quote Originally Posted by .paul. View Post
    try closing your form + then reopening it + if that doesn't work, close + reopen your project
    I've done both. I think saving the project doomed me. Had I seen the issue before I saved it, I wouldn't have, but there's nothing I can do about that now.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  4. #4
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: All child controls disappeared

    open the forms designer.vb file + check the tabpages are being added to the tabcontrol

  5. #5

    Thread Starter
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: All child controls disappeared

    Quote Originally Posted by .paul. View Post
    open the forms designer.vb file + check the tabpages are being added to the tabcontrol
    You'e a genius, Paul. That was the issue. You've saved me a huge headache.

    Thanks a lot
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  6. #6

    Re: All child controls disappeared

    Quote Originally Posted by .paul. View Post
    open the forms designer.vb file + check the tabpages are being added to the tabcontrol
    To further elaborate, make sure nothing got commented out in the designer somehow. VS does some weird stuff sometimes.

  7. #7
    New Member qiangqiang101's Avatar
    Join Date
    Nov 2010
    Location
    Earth
    Posts
    6

    Re: All child controls disappeared

    Quote Originally Posted by .paul. View Post
    open the forms designer.vb file + check the tabpages are being added to the tabcontrol
    sorry sir, i don't understand what is "+ check the tabpages are being added to the tabcontrol" means

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width