Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Controls get hidden in designer after debugging
 

Controls get hidden in designer after debugging

Hello,

I have some basic controls (e.g., checkboxes, textboxes,listboxes, etc)in a nested tab control (one tab control on the tab page of another tab control) and when I debug (F5) my application, everything looks fine. However, when I exit the application and am dumped back into the IDE designer, some of the controls have "disappeared". Sometimes there is a dotted line around their bounding box, as if they're selected but behind something.

I can't find out why the controls disappear, where they go, or how to get them back. The only way I know to get them back is to restart Visual Studio 2005. I don't have any code that hides or unhides controls and it's my understanding that all controls should be shown in the editor anyway, even if their visible property is set to false.

Any help would be appreciated, as this is very annoying and is really slowing down my development work.

Thanks,
Neville
NevilleBonwit  Sunday, February 01, 2009 7:41 AM
Hi Neville,

Thanks for posting, I will move your question to Windows Forms Designer Team so that they will be able to provide a better answer for you.

Regards,
Andrew Pechersky, VS Diagnostics Team. The posting is provided "AS IS".
Andrew Pechersky - MSFT  Tuesday, February 03, 2009 12:14 AM
Hi NevilleBonwit,

I can't reproduce the problem with Visual Studio 2005. Here's the steps I am trying to reproduce.

  1. Create a Windows Form project in Visual Studio 2005.
  2. Drag a TabControl to the Windows Form.
  3. Drag a TabControl to a TabPage of the previous TabControl(You call this nest tabcontrol, right?)
  4. Drag some controls to the tabPage of the nested TabControl.
  5. Run the application. see the same result as desinger.
  6. Exit the application, no controls disappear.

Am I doing something different from you?

Best regards,
Bruce Zhou

Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Tuesday, February 03, 2009 2:13 AM
Hello Bruce,

It sounds like what you are doing is what I am doing. Not all the controls disappear all of the time. It's some of the controls some of the time.

I figured out tonight that when I click and drag (e.g., select with a bounding box) over an area where there is a control that is disappeared, it will show up in the properties area, but the actual control graphics in the designer window are still hidden.

Any thoughts?

Thanks,
Neville
NevilleBonwit  Tuesday, February 03, 2009 7:34 AM
It seemed I met this problem before, but really hard to reproduce it when I am trying now. In order to exclude the possibilty that it's a project specific problem, you can create a new project and check if this problem still exist.

Best regards,
Bruce Zhou

Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Tuesday, February 03, 2009 8:09 AM
We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post editor window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Friday, February 06, 2009 9:28 AM
This started happening to me in one of the forms in my project. The form has labels, text boxes, group boxes, buttons, and they all get hidden when I recompile/run the project. Then I have to do ctrl-a (select all) and Format/Order/Bring to Front to get them visible again. And this happens every time I recompile or run (F5) the project. The project has other forms that behave normally. This form used to work ok for a few months and started doing it all of a sudden. It's gonna be next to impossible to reproduce because the form used to work fine previously. I can remember it happening at least one time before, but the form where it happened got ditched so I didn't pay too much attention to it.

Because it's hard to reproduce, I don't have high hopes for this bug getting fixed though. Just thought to post here and mention that it really is happening and is very annoying, maybe to a point that I'm gonna have to create a new form from a scratch. Btw, if all bugs were easily reproducible, fixing bugs would be easy.
illodin  Tuesday, September 15, 2009 8:18 AM
Sounds like you guys are getting low on system resources. Too many applications running? Just my thoughts.
MCP
webJose  Tuesday, September 15, 2009 9:01 PM

You can use google to search for other answers

Custom Search

More Threads

• Form doesn't close w/ two instances of usercontrol
• Error on form will not allow me to view form.vb [Design] mode
• Changing font of a control at design time 'breaks' the form
• Can't view Form in Designer
• C# help. No value retuning to label from constructor
• the sizegrip isnt shown though it set to show
• IPersistComponentSettings
• Properties (integer) setting min + max values
• Visual Studio 2008: Error analysis EntityName
• TabControl and Images not showing