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 8:47 PM

Hi NevilleBonwit,

Base on my understanding, you can see the controls on the form in run time but sometime it disappear in design time. Here I want to know more detail about your problem.

1. Did the form is a inherited form?
2. If it is a inherited form, did the nested TabControl added in base form? In other words, the TabControl you can use in the inherited form is actually inherited from the base form.

You can make a simple project to reproduce the problem and send it to me(v-kiqian@microsoft.com). Then I can research it to find a solution.

Sincerely,
Kira Qian


Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Tuesday, February 03, 2009 3:31 AM
Hello Kira,

You are correct about the behavior.Not all the controls disappear all of the time; some of the controls disappear some of the time.

I don't think it's an inherited form (I just created a newVS project and it was the default form).

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:37 AM

Hi NevilleBonwit,

You mean you can select the control but you still cannot see it? Could you please send me the test project? If the problem can occur on my computer, I will raise the issue to the product team.

Sincerely,
Kira Qian


Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Tuesday, February 03, 2009 7:58 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.
Kira Qian  Friday, February 06, 2009 9:35 AM

You can use google to search for other answers

Custom Search

More Threads

• How can i make a slider menu such as visual studio's toolbox or properties window?
• Handle Form.FormClosed() event
• optimize application
• Dark (abnormal) Selection grabs of controls in a container control
• Drag 'n drop docking of controls
• Remove the icon from the system tray programmatically
• Could I build applets with WinForms to run in a Browser?
• Open my local help.html file when selecting the component and press F1?
• status strip trouble: cant find status panel
• When and how should a custom control be used?