Thread: My UserControls dissapear off my form

  1. #1
    Registered User
    Join Date
    Aug 2001

    Angry My UserControls dissapear off my form

    My user controls dissappear off my form. I am using Visual Sudio 2003. This happens on the design form. I have no idea why. They can go on working fine for a while but sometimes when I reopen that form they dissappear. I have checked the InitializeComponent method of my form and they are still being initialized and added to the form there but for some reason they do not appear on the form. Has this happened to anyone else? This is getting really frustrating and is really slowing me down because everytime I have to fix a form I end up having to recreate the controls on the form so that they can reappear. This can take anywhere from 15 minutes to a couple of hours depending on how many controls I have on the form. I would appreciate any help I can get with this subject. By the way I have installed the latest service pack for the .Net framework. I was told by the guys at microsoft that this would fix that problem but it hasn't.

  2. #2
    Banal internet user
    Join Date
    Aug 2002
    Does the Task List window report anything?

    Are you modifying anything inside the, "Windows Form Designer generated code" region?

    Are you using any custom/inherited controls?

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Hannover, Germany
    Make sure your project builds without any errors. If the controls have build errors, the designer will remove them. Thats a PITA and I have no clue why VS does this, but that's it. Make sure it builds and never open the designer if it doesn't.

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reopening a form ?
    By Aga^^ in forum C# Programming
    Replies: 1
    Last Post: 02-11-2009, 09:28 AM
  2. Calling datas from another form?
    By Aga^^ in forum C# Programming
    Replies: 2
    Last Post: 02-06-2009, 02:17 AM
  3. Windows Form App as parent, Directx as child??
    By yetti82 in forum C++ Programming
    Replies: 3
    Last Post: 05-29-2006, 03:04 AM
  4. Accessing main form from functions in other classes
    By pj_martins in forum C++ Programming
    Replies: 1
    Last Post: 11-05-2004, 09:27 AM
  5. Making an MFC form to suit
    By TJJ in forum Windows Programming
    Replies: 1
    Last Post: 04-17-2004, 11:20 AM