Form designer looses controls

R

Rainer Queck

Hi NG,

It happens quit often, that in Visual Studio 2005 the form designer "looses"
controls.
Actually it does not really loose them, but the are no longer visible and to
get them back I must close the formdesigner and reopen it.

I observe this quit often with controls contained in a tabPage.

Is this a (known) Bug? If yes, please take this as a BugReport.

Regards
Rainer Queck
 
P

pbromberg

Well,
Sometimes my pants are "loose", but it is very rare that my form
designers "lose" controls.

You could try closing the form in the IDE and then reloading it. if
you think you have found
a legitimate bug, the place to check for and report it is the
Microsoft connect site.
 
L

Linda Liu [MSFT]

Hi Rainer,

Could you tell me what controls are placed on the form? Are they all
standard .NET controls? Do you bind these controls to data sources?

If possible, you may send me a simple project that could just reproduce the
problem.

You can also submit a bug or suggestion on Visual Studio in the Microsoft
connect web site via the following link by yourself:

https://connect.microsoft.com/VisualStudio


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
A

Aneesh Pulukkul[MCSD.Net]

Hi Rainer,

Could you tell me what controls are placed on the form? Are they all
standard .NET controls? Do you bind these controls to data sources?

If possible, you may send me a simple project that could just reproduce the
problem.

You can also submit a bug or suggestion on Visual Studio in the Microsoft
connect web site via the following link by yourself:

https://connect.microsoft.com/VisualStudio

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer tohttp://msdn.microsoft.com/subscriptions/managednewsgroups/default.asp...
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) athttp://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Was the control disappeared without any error?. Sometimes the Form
Controls were not visible on loading the form(design time), but it
showed up error message. I didn't dig down for details. Replacing the
form and controls solved the problem. But if you've go too many
control with custom code it'd be a pain.
 
R

Rainer Queck

Hello Linda,

I have placed a ZIP at www.qutronic.de/Temp/DisapearingControls.zip which
contains:
- demo Project "DisapearingControls"
- a procedure on how to "make controls dissapear" in "DisapearingCtrls.txt"
- two JPGs showing the situation here on my machine.

I hope this helps to reproduce the problem and do find the bug.
Please send me feedback to the e-mail address yuo have from me.

Regards
Rainer Queck
 
L

Linda Liu [MSFT]

Hi Rainer,

Thank you for your sample project.

Following the steps you described, I did see the reproduce the problem on
my side.

However, if I move the two labels and two textboxes to the form, this
problem doesn't exist. So it seems like an issue of the TabControl's
designer.

I will check our inner database to see if it is a known issue. BTW, I will
be OOF in the next Monday and Tuesday, so I will reply to you the next
Wednesday.

Have a nice weekend!

Sincerely,
Linda Liu
Microsoft Online Community Support
 
R

Rainer Queck

Hi Linda,
Following the steps you described, I did see the reproduce the problem on
my side. Good!

I will check our inner database to see if it is a known issue. BTW, I will
be OOF in the next Monday and Tuesday, so I will reply to you the next
Wednesday. Thanks.


Have a nice weekend!
Likewise!

Regards
Rainer
 
L

Linda Liu [MSFT]

Hi Rainer,

I have searched in our inner database and found a similar issue in it.

It points out that modifying the code and building the solution causing the
designer to reload. During this reload, the controls on the TabPage of the
TabControl is created but their visibility are not set back to visible.

The workaround is to put the content of the TabPage in a separate
UserControl and then add the UserControl to the TabPage and set it Dock
Fill.

Hope this helps.


Sincerely,
Linda Liu
Microsoft Online Community Support
 
R

Rainer Queck

Hi Linda,

thanks for the information.
I will consider the workaround.

Regards
Rainer Queck
 
L

Linda Liu [MSFT]

Hi Rainer,

How about the workaround?

If you have any question, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support
 
R

Rainer Queck

Hi Linda,

Linda Liu said:
Hi Rainer,

How about the workaround?

If you have any question, please feel free to let me know.
In my current project, I momentarely don't use data binding (have removed
all existing) due to project requirements. Therefor I don't have to deal
with the issue.
But the subject will come up again, and then I will try the workaround.
In case I then have problems, I will propably come up with more questions.

Thanks for checking on me!

Regards
Rainer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top