473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Disappearing controls

Hi All,

I've seen many postings regarding different situations where controls
disappear but have never seen a decent solution.

Here is the problem. I have a form onto which I am placing some
standard controls from the toolbox (mainly radio buttons and labels.)

The form itself derives from a base Form which derives from
System.Windows.Forms.UserControl. I do this as the base form has a
standard header which I wish to use on all derived forms.

Quite often when I rebuild the code a control vanishes from the design
view. It is still available via the properties combo (or if you look
at the Component Designer generated code, but usually the size has
been set to (0,0) or some other property is randomly deleted (such as
the text in the case of the label control)

Microsoft describe a very similar problem on their web-site and
provide a patch but the patch is for .NET 2002 and I am using .NET
2003 and so the patch won't install.
(http://msdn.microsoft.com/vstudio/do...talossifx.aspx)

Hopefully I have described all relevant information here.

Does anyone know how to stop this from happening?

Cheers,
Steve
Nov 16 '05 #1
4 5773
Steve,

Yes, I have experiencedd the same problem with both 2002 and 2003. It is
sporadic and I can never figure out what causes it. However, the work
around I use is to close the Designer View and recompile. Then open the
form after it has compiled in the designer and the controls somehow
magically re-appear.

A similar issue I have is sometime the Tab pages of the TabConrol shift out
of order. If I have 6 Tabs, and add a 7th, the index order gets mangled.

Sorry, I don't have a better fix.

Fritz
"Steve" <go****@sforeman.com> wrote in message
news:43**************************@posting.google.c om...
Hi All,

I've seen many postings regarding different situations where controls
disappear but have never seen a decent solution.

Here is the problem. I have a form onto which I am placing some
standard controls from the toolbox (mainly radio buttons and labels.)

The form itself derives from a base Form which derives from
System.Windows.Forms.UserControl. I do this as the base form has a
standard header which I wish to use on all derived forms.

Quite often when I rebuild the code a control vanishes from the design
view. It is still available via the properties combo (or if you look
at the Component Designer generated code, but usually the size has
been set to (0,0) or some other property is randomly deleted (such as
the text in the case of the label control)

Microsoft describe a very similar problem on their web-site and
provide a patch but the patch is for .NET 2002 and I am using .NET
2003 and so the patch won't install.
(http://msdn.microsoft.com/vstudio/do...talossifx.aspx)

Hopefully I have described all relevant information here.

Does anyone know how to stop this from happening?

Cheers,
Steve

Nov 16 '05 #2

"Fritz Switzer" wrote:

[Re: Disappearing controls in Visual Studio]
Yes, I have experiencedd the same problem with both 2002
and 2003. It is sporadic and I can never figure out what
causes it. However, the work around I use is to close the
Designer View and recompile. Then open the form after it
has compiled in the designer and the controls somehow
magically re-appear.
My experience has been that this occurs often when you have created
a user control (or custom control), placed it on a form, and then
make a change to the user control itself. Let's say you realize that
your user control needs an extra button, or whatever. You make the
change, compile, and suddenly the control disappears from your form.

Doesn't happen every time but quite often. My impression is that the
environment is having a hard time loading (or whatever term is
appropriate) the user control after it has changed. But I don't
know. My work around is the same as yours.
A similar issue I have is sometime the Tab pages of the
TabConrol shift out of order. If I have 6 Tabs, and add a
7th, the index order gets mangled.


Oh yeah, I've had this happen, too.
Nov 16 '05 #3
Wave,

Yes there is usually a custom control on the WinForm.

I just wish it would do it everytime or not at all:)

Fritz
"Wavemaker" <ja**********@BiteMeHotmail.com> wrote in message
news:Ib********************@comcast.com...

"Fritz Switzer" wrote:

[Re: Disappearing controls in Visual Studio]
Yes, I have experiencedd the same problem with both 2002
and 2003. It is sporadic and I can never figure out what
causes it. However, the work around I use is to close the
Designer View and recompile. Then open the form after it
has compiled in the designer and the controls somehow
magically re-appear.


My experience has been that this occurs often when you have created
a user control (or custom control), placed it on a form, and then
make a change to the user control itself. Let's say you realize that
your user control needs an extra button, or whatever. You make the
change, compile, and suddenly the control disappears from your form.

Doesn't happen every time but quite often. My impression is that the
environment is having a hard time loading (or whatever term is
appropriate) the user control after it has changed. But I don't
know. My work around is the same as yours.
A similar issue I have is sometime the Tab pages of the
TabConrol shift out of order. If I have 6 Tabs, and add a
7th, the index order gets mangled.


Oh yeah, I've had this happen, too.

Nov 16 '05 #4
Thanks for the help guys. At least now I have a way of getting the
controls back which will help a lot. Having to recreate a control
that had already dissapeared twice was starting to get way tedious!

In my case the controls that are disappearing are not custom controls
but they are on a custom form, so I guess the IDE has issues with you
customising things.

From what I gather this problem has been around for a while, have
Microsoft stopped supporting this product aleady!!!
Yes, I have experiencedd the same problem with both 2002
and 2003. It is sporadic and I can never figure out what
causes it. However, the work around I use is to close the
Designer View and recompile. Then open the form after it
has compiled in the designer and the controls somehow
magically re-appear.

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: neptune | last post by:
I built a form to access a query with a 2 field primary key. It should use 2 controls to find the unique record and display the other field values on the form. In the criteria section of the...
2
by: Rachel Suddeth | last post by:
Here is my scenario: I have a few custom controls that I set up on a form and tested setting properties and appearances. Then I added a couple references to the project which add classes I need to...
6
by: George Yefchak | last post by:
Hi folks, What's the latest news on the "disappearing controls" issue? I've seen a few posts over the last several months indicating that other people have the same problem, but I've seen...
4
by: c676228 | last post by:
Hi all, the data disappearing problem occurs to all my controls even my regualr web control like asp:textbox, when I click back button in web browser from second page to first page and then click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.